[Django]-Django weird css issue

9👍

To speed up page loads your browser is likely using a cached copy of your CSS file; thinking that it hasn’t changed since it was last fetched.

In that case you’ll see something like this in the console:

[12/Feb/2011 20:50:35] "GET /site_media/css/style.css HTTP/1.1" 304 0

Where the 304 Not Modified status code means:

If the client has performed a
conditional GET request and access is
allowed, but the document has not been
modified, the server SHOULD respond
with this status code.

You can press ctrl+F5 to force a cache refresh (in Firefox anyway).
After that you should see that the browser fetches the CSS file again, e.g.:

[12/Feb/2011 22:05:02] "GET /site_media/css/style.css HTTP/1.1" 200 2242

Leave a comment