Is it possible to set expiry dates of static files served with IIS6 over SSL? I'm trying to deliver javascript and css files in such a way that they can be cached by a browser.
|
feedback
|
|
A browser should never cache content downloaded over a HTTPS connection, neither should any proxy between the browser and your server. The only way to do this would be to serve the stylesheets and javascript from a HTTP service, but then your users will see the "this page contains both secure and insecure content" message (or their browser's equivalent). It would be nice to be able to tell the client (or proxies) that some content is not sensitive and therefore can be stored in cache, but there is no (standard) method of doing this. | |||||||||
feedback
|
|
You can actually set headers to cache some HTTPS content, however not everything trusts it or will save for more then one session. In apache it's just the standard mod_expires, and their is a similar setting available for IIS. | |||||
feedback
|