html - Weird Ghost CSS Bug -


how possible whole website works without css file styles? have line in header:

<link rel="stylesheet" type="text/css" href="styles.css" /> 

i deleted styles.css file server, nothing changed. if delete line header there no styles (as expected)

at 1 point noticed none of css changes make have effect, made sure i'm not doing dumb editing or referencing wrong file , there not 2 copies of reason. if change other html files, can see effects, not styles file.

i can force work renaming css file, don't want that.

has seen happen before?

this because caching of css. try clearing cache of browser.

you can prevent css caching below way

<link rel="stylesheet" type="text/css" href="style.css?v=1" /> 

using php can trick

<link rel="stylesheet" type="text/css" href="style.css?<?php echo date('l js \of f y h:i:s a'); ?>" /> 

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -