所以我正在使用php创建一个小型Web应用程序。我只是插入eHost托管的MYSQL。 http://www.gearedwebdesigns.com/BPHCalcEnter.php
我在桌面上没有缓存问题。我的机器人Galaxy s7在Chrome中的故事不同。如果我使用chrome检查器和远程设备,那么我可以通过CTRL + Shift + F5查看最新的php更新。但是,如果我通过拉下来刷新,那么它会加载旧版本。我已多次尝试清除缓存。
我已将此添加到我的.htaccess
<filesMatch "\.(html|htm|js|php|css)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</filesMatch>
<IfModule mod_headers.c>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</IfModule>
我把它放在我的php文件的顶部。
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
有什么想法吗?感谢。