Hi,
Does anyone know if there is a proper scripcase way to disable caching in the scriptcase web IDE? It’s causing me untold grief, simply changing a grid field property like width or text justification, left, right, center won’t change unless I clear the browser cache or reload the specific file using Dev mode in the browser.
It’s a real pain because I keep forgetting about this issue. Since the scriptcase web IDE is for development, I’d expect caching to be “disabled” or some trick used since we’re modifying and testing all the time.
Scriptcase do the correct trick in the main apps (php) by adding ?rand=xxxxxxx to get around the immediate caching issues, but they’re not doing it for js nor css files. You normally would do this for js and css files too .css?{version} .js?(version)
I’ve had to modify the apache config file directly as a hack to get around the problem,
<filesMatch "\.(js|css)$">
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Thu, 01 Jan 1970 00:00:00 GMT"
</filesMatch>
The above works, but I’m concerned this’ll mess up other parts of scriptcase. Of course load times has also been impacted by this change but it’s better than having to clear the cache constantly manually - and at a global level.
Another option is to disable caching in the browser during development, but again not practical and I always forget!
There must be an option/proper way somewhere in scriptcase?
thanks