PHP页面不会在页面RELOAD上更新,但会在页面REFRESH上

时间:2016-07-02 17:45:25

标签: php refresh reload meta head

当我更新我的静态PHP网站并从菜单中单击另一个页面时,然后返回主页。什么都没有更新。只有当我按F5时,它才会实际刷新缓存并更新信息。

我需要我的观众才能看到这些更新。如何从缓存中阻止它?我添加了这个(参考其他的qurstion答案):

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">

但它也无济于事。以下是我的标题元信息。

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
    <!-- some meta tags, important for SEO"--> 
    <meta name="description" content="content description removed for security"/>
    <meta name="keywords" content="content keywords removed for security" />
    <meta name="revisit-after" content="7 days" />
    <meta name="robots" content="index,follow" />
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="-1">
</head>

0 个答案:

没有答案
相关问题