Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi there,
how can the browser cache be disabled in embedded chromium browser?
Some sources say, that You just can open Chrome and disable it via settings -> more tools -> developer tools -> Network -> "disable cache".
But this seems only to work for the "real" chrome browser and has no effect on the embedded browser.
In the embedded chrom(ium) browser only refreshes the base page (e.g. test.php) and its included javascript (<script src="test.js" type="text/javascript" ></script>) but not javascript files, that were included afterwards ( document.write("<script type=\"text/javascript\" src=\"my-lib.js\" charset=\"utf-8\"><\/script>'); )
any help would be appreciated.
Thanks
/me
Solved! Go to Solution.
I'm not sure it's related to Cache in the embedded Chromium browser. I performed a simple test:
Some page test.html with <script src="writejs.js"></script> calling. The source writejs.js has:
BTW: to suppress the Cache of embedded browser, could be probably use the --disable-application-cache flag, but I'm convinced that PTC does not allow (accessible) to configure the startup attributes of the zbcefr.exe Chromium process.
Use the CEF_DEBUG_PORT debug system and watch the HTTP headers of files.
Good luck
PZ
Mat,
You can view where the PTC embedded Chromium cache area is located by entering the address chrome://version/ in the embedded browser. There is a sub-folder for Code Cache. You can test clearing/modifying the cache area directly, although I have not tested this at all, and have no idea what may happen [I'm not a java code guy]. It might be worth testing at any rate. We sometimes have to clear the entire cache area (without Creo Parametric running), to fix issues with the browser being hung up.
We tried to modify the PTC embedded Chromium browser settings using typical Chromium configuration files, but nothing seemed to work. We were trying to modify simple items like being able to modify the font size.
Regards,
Dan N.
Thanks for Your replay, Dan.
unfortunately, I can confirm, that You cannot delete all cache files "on the fly", as You described.
You have to quit Creo every time before You want to delete all cached data.
I cannot believe, that PTC let its customers struggle with that kind of garbage UI (either garbage, because You only get "last week's" version of the internet, or garbage, because they hide a maybe existent preference panel "that good").
I'm not sure it's related to Cache in the embedded Chromium browser. I performed a simple test:
Some page test.html with <script src="writejs.js"></script> calling. The source writejs.js has:
BTW: to suppress the Cache of embedded browser, could be probably use the --disable-application-cache flag, but I'm convinced that PTC does not allow (accessible) to configure the startup attributes of the zbcefr.exe Chromium process.
Use the CEF_DEBUG_PORT debug system and watch the HTTP headers of files.
Good luck
PZ
Thanks,
tweaking "Cache-Control" did the trick.