Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django - http code 304, how to workaround in the testserver?

I have a CSS code that generates http 304:

[08/Nov/2011 15:22:07] "GET /site_media/logo1.gif HTTP/1.1" 304 0

How can I get a workaround using the Django test server? Any clues?

Best Regards,

like image 427
André Avatar asked Nov 08 '11 20:11

André


People also ask

What is status code 304 Not Modified?

The HTTP 304 Not Modified client redirection response code indicates that there is no need to retransmit the requested resources. It is an implicit redirection to a cached resource.


1 Answers

The 304 code is not an error. You don't need a workaround. It simply means that the static file has not changed since your browser last accessed it

For more information see the Wikipedia explanation of 3xx status codes.

like image 144
Alasdair Avatar answered Nov 05 '22 03:11

Alasdair