Last post Jan 14, 2011 11:26 AM by desertfoxaz
Jan 13, 2011 12:24 PM|desertfoxaz|LINK
If I disable caching at the page level, does this apply also to images, css, and js files used by the page? The reason I ask is that I want to make sure that these files don't have to be downloaded on every request by the same user as that isn't efficient.
The code I'm using is:
The disabling of the cache was done by another developer but I question whether it's really neccessary. The content of the page will change based on what actions the user performs.
Jan 13, 2011 01:13 PM|ShadowDanser|LINK
Your code will only affect the page and not linked external files such as img, js, and css files. You can set a cache on those files by editing the web server settings (for example in IIS). Or output the content of those files with an .ashx file (then you
can use the code lines as above).
Jan 14, 2011 11:26 AM|desertfoxaz|LINK
That's what I thought. I confirmed this by doing a timing test with caching off and on and I saw no difference in performance.
Thanks for your feedback.