Caching images with asp/http

Posted by Dmitry Makovetskiyd on Stack Overflow See other posts from Stack Overflow or by Dmitry Makovetskiyd
Published on 2012-10-02T09:35:49Z Indexed on 2012/10/02 9:37 UTC
Read the original article Hit count: 181

Filed under:
|

I want to cache all the images on my site, so I used this code:

<%Response.AddHeader "Expires","Tue, 2 October 2013 00:00:00 GMT"%>

The problem is that google says the images are not cached, whenever I go to this site:

https://developers.google.com/speed/pagespeed

Also in chrome, I can see that it gives a Get response for all the images.

Why is that and how can I cache the images for the next year.

© Stack Overflow or respective owner

Related posts about http

Related posts about asp-classic