Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Client side image caching with ASP.Net

This is really two questions, first, do browsers normally cache images on the client by default or does the server have to indicate that they can be cached?

Second, given that I do not have access to IIS what can I do in an ASP application to improve client side caching of images.

like image 258
tpower Avatar asked Nov 03 '08 20:11

tpower


3 Answers

i haven't used this but you may be interested in taking a look at caching images in asp.net

like image 166
dove Avatar answered Oct 18 '22 12:10

dove


A well-written browser will use the HTTP headers associated with the image to determine if the image should be cached and how long it should be cached for.

Take a look at the Cache-Control, Pragma, and Expires headers in the HTTP 1.1 specification.

like image 25
matt b Avatar answered Oct 18 '22 13:10

matt b


Here is a useful link

Are you generating the images yourself, or are they static files

like image 39
Andrew Bullock Avatar answered Oct 18 '22 11:10

Andrew Bullock