You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In IE 11, it seems the RequireJS text plugin only caches the response when requesting .html files for the current browser session. Refreshing the browser causes the underlying XMLHTTPRequest object to issue a new request to the server and will download the file again. This has obvious performance implications.
Here's a typical request:
GET https://cdn.<servername>.com//app/app.html?v=5%2F6%2F2017%203%3A55%20AM
200 OK (text/html) Cache-Control: no-cache
For reasons unknown to me, the xhr requests sent from IE 11 contains a header Cache-Control: no-cache? The request is hitting a CDN, which gets passed on to the origin server and then is returned through the CDN.
Right now IE 11 always re-fetches html files, but chrome does not. In Chrome, caching works as expected and the html files are never re-fetched.
I initially thought this was related to Microsoft's XMLHTTPRequest implementation so I tried enabling the msCaching property (see https://msdn.microsoft.com/en-us/library/dn265016(v=vs.85).aspx) but setting msCaching = 'enabled' didn't seem to have any effect.
I've tried everything I can think of and I still can figure out how to get xhr to cache these html pages.
Any help would be greatly appreciated!
Thank
The text was updated successfully, but these errors were encountered:
In IE 11, it seems the RequireJS text plugin only caches the response when requesting .html files for the current browser session. Refreshing the browser causes the underlying XMLHTTPRequest object to issue a new request to the server and will download the file again. This has obvious performance implications.
Here's a typical request:
Here's a typical response:
For reasons unknown to me, the xhr requests sent from IE 11 contains a header
Cache-Control: no-cache
? The request is hitting a CDN, which gets passed on to the origin server and then is returned through the CDN.Right now IE 11 always re-fetches html files, but chrome does not. In Chrome, caching works as expected and the html files are never re-fetched.
I initially thought this was related to Microsoft's XMLHTTPRequest implementation so I tried enabling the
msCaching
property (see https://msdn.microsoft.com/en-us/library/dn265016(v=vs.85).aspx) but settingmsCaching = 'enabled'
didn't seem to have any effect.I've tried everything I can think of and I still can figure out how to get xhr to cache these html pages.
Any help would be greatly appreciated!
Thank
The text was updated successfully, but these errors were encountered: