当前位置: 动力学知识库 > 问答 > 编程问答 >

php - $_SERVER[HTTP_CACHE_CONTROL] set to NO CACHE always even though cache on

问题描述:

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?

网友答案:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: