$_SERVER[HTTP_CACHE_CONTROL] 始终设置为 NO CACHE,即使缓存已打开
我检查了 $_SERVER['HTTP_CACHE_CONTROL']
,它说 没有缓存
即使我有元标记:
<meta http-equiv="Cache-control" content="public">
而且我也尝试过这个,
<meta http-equiv="Cache-control" content="cache">
仍然说同样的“不” CACHE”
我应该担心搜索引擎蜘蛛获得与 $_SERVER
相同的值吗?
I checked $_SERVER['HTTP_CACHE_CONTROL']
and it is saying no cache
even though i have the meta tag:
<meta http-equiv="Cache-control" content="public">
and I've tried this as well
<meta http-equiv="Cache-control" content="cache">
still saying same "No CACHE"
Should I be worried that search engine spider gets same value as $_SERVER
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该值指的是请求中发送的
Cache-Control
HTTP标头,即客户端将此信息发送给您。你无法控制它,但它也不会对你的服务器产生任何真正的影响。That value refers to the
Cache-Control
HTTP header sent in the request, i.e. the client sent this information to you. You have no control over it, but it doesn't have any real influence on your server either.