Hi, I am experiencing that I am no longer able to prevent caching of my JavaScript web resource (bundlet from TypeScript) during debugging. I have used Fiddler and its Auto Responder feature succesfully for some time, but it is not working any more. I have tried the following:
- Disable cache in browser (while Dev Tools are open)
- Use the following script in Fiddlers OnBeforeResponse
if (oSession.uriContains("hty_CrmClientScriptExtension")) {
oSession.oResponse.headers.Remove("Expires");
oSession.oResponse.headers.Remove("Cache-Control");
oSession.oResponse.headers.Remove("Pragma");
oSession.oResponse["Cache-Control"] = "no-cache, no-store, must-revalidate";
oSession.oResponse["Pragma"] = "no-cache";
oSession.oResponse["Expires"] = "0";
}
- Empty cache and hard refresh in browser while Dev Tools are open
Non of these helps. This worked before, any advice is appriciated.