Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable cache on specific domains?

Is there a good way to disable cache for specific domains? For example, anytime I start building a new website can I block just that domain from caching? I would prefer the rest of the internet to be cache-able.

I am currently using Firefox Web Developer Toolbar addon to disable cache, is there any better plugins?

like image 739
Dave Avatar asked Jan 26 '11 22:01

Dave


People also ask

How do I disable a specific website cache?

Here's how... When you're in Google Chrome, click on View, then select Developer, then Developer Tools. Alternatively, you can right click on a page in Chrome, then click Inspect. Click on the Network tab, then check the box to Disable cache.

What does disabling cache?

Along the top of the network panel, there's a checkbox that says “Disable Caching.” This disables browser-level caching, but only as long as the DevTools are open. So it won't affect your normal browsing, but while working with the developer tools you won't have to worry about stale content.


1 Answers

Built-in Firefox Developer Tool has a features to disable cache for tabs where this toolbox is open.

Firefox Developer Tools Settings

Disable cache: disable the browser cache to simulate first-load performance. From Firefox 33 onwards this setting persists, meaning that if it is set, caching will be disabled whenever you reopen the devtools. Caching is re-enabled when the devtools are closed.

https://developer.mozilla.org/en-US/docs/Tools/Tools_Toolbox

Unfortunatley it's not per domain, but maybe this is better than Web Developer Toolbar.

like image 180
wiktor Avatar answered Oct 10 '22 01:10

wiktor