![]() |
Turn off caching in Chrome?
Anyone know what the process is to stop Google Chrome from caching website content?
Specifically when it comes to stylesheets. |
If we are talking about tags by type:
<link rel="stylesheet" href="/style.css"> it is enough to add any get request to the link, and when you want everyone to have the file updated, update the value in the get request. For example: <link rel="stylesheet" href="/style.css?v=1"> <link rel="stylesheet" href="/style.css?v=2"> <link rel="stylesheet" href="/style.css?v=3"> |
Quote:
Code:
style.css?<?php echo time(); ?> Caching is a huge bitch. the bane of my existence. I hope this helps you. |
Windows/*nix: Ctrl+Shift+R
Mac: Cmd+Shift+R Doesn't disable caching, but it clears it for the current page on reload. |
Awesome, thank you all for the help :)
|
All times are GMT -7. The time now is 12:21 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123