I'm trying control the caching on ASP generated pages as a number of pages my app generates never change (in fact they are filled with javascript as this provides a neat way to bundle the js code with the application dll)
anyway, I have set the cachecontrol on the response (equivalent to going Response.CacheControl = "Public") but I am noticing that the server is handling these pages over and over even though the url for these pages is still the same.
It's as if these pages aren't being cached and the browser is going back to the server each time. I've tried with both IE and Netscape with the same results.
Strangely, when I look in the Temporary Internet Files folder (for IE) the pages are there.
Am I missing something? How can I have these pages cached?
My understanding is that without something like Response.Expires = -1000 or something similar that the pages would be allowed to be cached by the user's browser if his browser settings allow this.
In IE Tools | Internet Options | General tab | Settings button | Check for newer versions of stored pages...
Without it, it seems the browser goes back to the server every page (except when you tell it to never look). With it, the browser can compare the date with it's version of now and decide whether to download it again.
Bookmarks