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

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -