To summarize the options that are available to you:1. Use version suffixes like script.js?42 -- this is usually used on production2. Set up your web server to serve scripts with no-cache headers -- this way you can get caching control from the server side.3. Clear cache using either browser menu or Developer Tools Network Panel context menu - unfortunately you can not clear cache only for certain domains.4. Disable cache from Developer Tools settings -- this will only work while Developer Tools front-end is opened.5. If you are not loading scripts dynamically then Ctrl+R/Ctrl+Shift+R could work as well.
Worth pointing out just because...Incognito mode not only gives you an empty cache but also has no extensions running by default, which is a pleasant blank slate to return to and make sure you have your sanity.So at least as a workaround you can repeatedly close and open incognito to work from a freshly empty cache.
var megaReloadTab = function(tab){
var currUrl = tab.url, currIndex = tab.index, currId = tab.id;
// if we make the new tab with the same URL (ie pass the url to the create call)
// then we seem to get the same cache issues, but if we let the tab make itself
// first and THEN go to the URL, it seems better....
// We make a new empty tab before removing the old one so that, if this is the
// only tab open, we don't close the browser itself :)
chrome.tabs.create({ index: currIndex},
function(newtab) {
chrome.tabs.remove(currId, function() {
chrome.tabs.update(newtab.id, { url: currUrl });
console.log("Made new tab for "+currUrl);
});
});
};
--To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/8ead9225-7886-40ed-92bf-d24a5075ee74%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
Clear the cache in Chrome is a big problem for us. I have an web application which use a compressed js file(compressed size about 1400kb). Recently I modified this file, because the first time when I deploy in the production, I didn't put version number of set no cache in the header, now I even change my url, I still found the web use the old js file, all other browsers like FireFox, IE updated. Although I have an announcement at the beginning of the web to ask users clear their cache at the first time use, but I cannot guarantee all the uses will clear their Chromes' cache. And we even recommend users to use Chrome. Anyone has good suggestion to clear users' cache? Because I cannot control this.
--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/1fe43513-1f94-4d73-8405-019ef8a824ed%40googlegroups.com.
A universal hack is to just append some version number to the query string.<script src="some-script.js?v=1"></script>This makes sure all of your users are up to date with the latest version of that file (unless the HTML is also cached).The only issue with this approach is that proxy servers do not handle it well and retrieve the URL every time.
☆PhistucK
On Wed, May 21, 2014 at 5:53 PM, <sshe...@gmail.com> wrote:
Clear the cache in Chrome is a big problem for us. I have an web application which use a compressed js file(compressed size about 1400kb). Recently I modified this file, because the first time when I deploy in the production, I didn't put version number of set no cache in the header, now I even change my url, I still found the web use the old js file, all other browsers like FireFox, IE updated. Although I have an announcement at the beginning of the web to ask users clear their cache at the first time use, but I cannot guarantee all the uses will clear their Chromes' cache. And we even recommend users to use Chrome. Anyone has good suggestion to clear users' cache? Because I cannot control this.
--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/9ccf9248-4341-41f2-9026-5925921bbda6%40googlegroups.com.
--To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/CABc02_J10rJHwtw%3DTscesCH_vqprLeaQsaBD%3DHCOYQK8U02BAg%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-chrome-developer-tools/JGVKZgMNSuc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/CAKixt5sxE%3Dhy%3D1NbDnXfjd-amf1kmdyjbxiY7806oHDvH-wxJA%40mail.gmail.com.