Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I turn caching off in Chrome for a particular website?

I'm developing Javascript for a website called www.example.com and Chrome keeps caching earlier versions of my code. I can continuously clear the cache, but that's becoming a time sink. Any other options?

like image 413
JnBrymn Avatar asked Jun 29 '11 21:06

JnBrymn


2 Answers

If you do not want to change the code for your webpage. You can simply open developer tools on Google Chrome. Shortcut: Ctrl+Shift+i on windows.

You'll find a gear on the bottom-right corner that'll take you to settings. Check "disable cache" and you're good to go.

like image 106
user740857 Avatar answered Oct 20 '22 01:10

user740857


I usually press: ctrl + shift + r to clear the cache. That I find the easiest.

This also works:

<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
like image 28
Nish Avatar answered Oct 19 '22 23:10

Nish