To improve the site performance, I'm adding following http headers in IIS 7.5.
Expires: Sun, 29 Mar 2020 00:00:00 GMT
and
Cache-Control: Public
I'm adding these headers for images folder in site's virtual directory.
When I access the site, I see that for each image present in this folder; those response headers were:
Accept-Ranges:bytes
Cache-Control:no-cache, no-store,Public
Content-Length:4445
Content-Type:image/png
Date:Fri, 06 Jun 2014 09:18:36 GMT
ETag:"16874c2af55ecf1:0"
Expires:-1,Sun, 29 Mar 2020 00:00:00 GMT
Last-Modified:Wed, 23 Apr 2014 13:08:48 GMT
max-age:604800
Pragma:no-cache
Server:Microsoft-IIS/7.5
X-Powered-By:ASP.NET
I need browser to take these images from its cache instead of requesting again from server. How should I achieve it?
ETagfind what is place it and disable it for the images.ETagusing solution provided byKristoferGat forums.iis.net/t/1177192.aspx. But still it is not getting cached.https. Can this produce a problem?ETagthat is only make a one trip round to the server and if the ETag has no change the image is not loading again, for this session.