asp.net mvc - How to set Cache-Control header for external js -
PageSpeed has suggested that I add cache-control headers to some external JS (from AdSense).
How can I do this for an ASP.NET website? I did it by adding web.config to the JS folder for local resources.
The only way a local copy of the script will be near you will be some programs (perhaps global. Asax 's
BeginRequest method) that will refresh a local copy in a while.
Comments
Post a Comment