Django - http代码304,如何解决在测试服务器? [英] Django - http code 304, how to workaround in the testserver?

查看:648
本文介绍了Django - http代码304,如何解决在测试服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个生成http 304的CSS代码:

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

如何使用Django测试服务器?任何线索?

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

最好的问候,

推荐答案

304 代码不是错误。您不需要解决方法。这只是意味着静态文件自浏览器上次访问它以来没有改变

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

有关更多信息,请参阅 3xx状态码的维基百科解释

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

这篇关于Django - http代码304,如何解决在测试服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆