I have a CSS code that generates http 304:
我有一个生成http 304的CSS代码:
[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?
如何使用Django测试服务器获得解决方案?有线索吗?
Best Regards,
最好的问候,
2 个解决方案
#1
18
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
304代码不是错误。你不需要变通。这仅仅意味着自从您的浏览器上次访问它以来,静态文件没有改变。
For more information see the Wikipedia explanation of 3xx status codes.
有关更多信息,请参阅*对3xx状态码的解释。
#2
2
If you're getting 304 with files you did change, you can force reloading in your browser by checking "Disable cache" in your browser's dev tools (on Chrome/ium, right click on webpage -> inspect element -> go to network tab -> disable cache)
如果你已经修改了304个文件,你可以在浏览器的开发工具中检查“禁用缓存”(在Chrome/ium,右键点击网页-> inspect element -> go to network tab -> Disable cache)来强制重载浏览器
#1
18
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
304代码不是错误。你不需要变通。这仅仅意味着自从您的浏览器上次访问它以来,静态文件没有改变。
For more information see the Wikipedia explanation of 3xx status codes.
有关更多信息,请参阅*对3xx状态码的解释。
#2
2
If you're getting 304 with files you did change, you can force reloading in your browser by checking "Disable cache" in your browser's dev tools (on Chrome/ium, right click on webpage -> inspect element -> go to network tab -> disable cache)
如果你已经修改了304个文件,你可以在浏览器的开发工具中检查“禁用缓存”(在Chrome/ium,右键点击网页-> inspect element -> go to network tab -> Disable cache)来强制重载浏览器