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

查看:40
本文介绍了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天全站免登陆