Page 1 of 1

HTML Producer Disable Cache

Posted: 16 Jan 2018, 00:46
by grahamspr
While doing testing with the HTML Producer I've been changing javascript which has caused me issues as it seems to be caching it and only way I've found to force refresh is by adding a variable to the URL and changing it each time I've updated the javascript.

I've tried adding the following to the header but doesn't seem to have made any difference.

Code: Select all

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />

Is there a way of disabling the cache on chromium?

Re: HTML Producer Disable Cache

Posted: 08 Mar 2018, 13:02
by grahamspr
Still haven't managed to find a solution to this.

Does CEF have the option to disable the Cache completely?

Re: HTML Producer Disable Cache

Posted: 08 Mar 2018, 18:27
by deedos
I came across this issue in the past. Had a solution using a timestamp for my ajax calls

Code: Select all

var timestamp = new Date().getTime();
$.getJSON("my.json?"+timestamp, .....