Client Side Image Caching with ASP.Net

These are really two questions: first, do browsers usually cache images on the client by default, or does the server indicate that they can be cached?

Secondly, given that I do not have access to IIS, what can I do in an ASP application to improve client-side image caching.

+6
caching image
source share
4 answers

I have not used this, but you might be interested to take a look at image caching in asp.net

+2
source share

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

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

+2
source share

Here is a useful link

You generate images or static files yourself

+1
source share

These are really two questions: first, do browsers usually cache images on the client by default, or does the server indicate that they can be cached?

Browsers cache what they are allowed to. You can globally set those headers in IIS, but you can almost always redefine them from your application. If some ssl accelerators or firewalls do not overlap them.

Secondly, given that I do not have access to IIS, what can I do in an ASP application to improve client-side image caching.

just look in System.Web.HttpContext.Current.Response.Cache

0
source share

All Articles