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

Popular posts from this blog

php - how to change mysql_result($res, 0, "url"); to mysqli -

c# - How to clone a HttpRequestMessage when the original request has Content? -

split - php explode string with Uppercase if lowercase letter exists before it without space -