Can I disable the cache in Chrome for specific hosts?
Solution 1:
You can't turn off the cache discriminately, but as of v15, you can turn it off completely via a settings panel that you access by clicking the gear button in the lower right corner of the developer tools window. On the network panel of the developer tools, you also have the option to clear cache from the right-click menu with only a confirmation dialog (i.e. it doesn't pop up the preferences tab the way "Clear Browsing Data" does.
Update: looks like this is now a checkbox on the developer tools network tab itself:
Solution 2:
This is already possible if you switch to Incognito mode for that site/host.
Ctrl + Shift + N
Viewing a site in Incognito mode should give you a clean slate void of any cached items and images.
If you're in a session, then it will reset it for you too. So you may want to watch for that when developing.
But if you really need to disable it on a per-site basis, then no. It's not currently possible.
Solution 3:
Why not use Chrome profiles (aka "users")?
Configure one to be your "dev" profile (with no caching). You can enable a cache-killing plugin. You can disable cookies too. When it's time for a dev session, use that profile. Then when it's time to chill simply switch the profile back. All profiles can be run simultaneously.
This is also SUPER handy for testing purposes.
Assigning shortcuts and keyboard shortcuts to switch back-and-forth is icing on the cake.
Now if you really want to be slick you could have multiple user profiles for different projects/environments all at once (i.e., one for JS, one for server-side, etc... multiple monitors a must). Better use the superuser icon if this is you. ;-)
Solution 4:
Disabling the cache from the developer tools settings in Google Chrome does not prevent caching of images, I've noticed. It only disables caching of CSS, JavaScript, and markup. Incognito mode is likely the most effective way of ensuring you're dealing with an uncached webpage.
Solution 5:
Take a look at Super-Cache chrome extension which allows to customize caching policy per host
From docs:
Override caching policy that has been set on the server. Select a host on which the caching is required and all requests from a page with that host will be cached.