When changing JavaScript (in a separate file) and when the page is reloaded, the old script is loaded from the browser cache. Reloading the page with Ctrl-F5 loads the new script. Is there any command that on the server side tells the browser to download non-cache JavaScript?
For example, so that the browser does not cache the page I use
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) Response.Cache.SetCacheability(HttpCacheability.NoCache); ... }
You need the same thing, but about the scripts in separate files!
UPD: For critics: It is necessary to remove caching only for convenience of testing, after starting the application I will remove these lines.