We had a production release and there were issues due to javascript that we updated. The clients have an old cached version of the javascript file which is causing the issue. The workaround is to have them refresh their browser cache (hit F5) but Im trying to understand how long the javascript gets cached by default.
I do not see the cache-control headers or Expired header being set on the server side and I do not see those headers in the developer console in chrome. I DO see the below meta tags are set on the page. These meta tags would lead me to believe the JS is not cached - however we know it is because we have many users reporting issues and hitting F5 fixes it.
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
So back to my original question - how long is the javascript going to be cached by default if we set no cache headers. I apologize since Im sure this question is asked elsewhere I just cant seem to find a concrete answer. Here are all the headers I can see being set:
Accept-Ranges:bytes
Connection:Keep-Alive
Content-Length:157271
Content-Type:application/x-javascript
Date:Tue, 23 Feb 2016 15:37:38 GMT
Keep-Alive:timeout=15, max=500
Last-Modified:Sat, 20 Feb 2016 10:57:45 GMT
Strict-Transport-Security:max-age=31536000; includeSubDomains
X-Content-Type-Options:nosniff