douyan8070 2016-04-15 03:32
浏览 38

即使在Godaddy的元标记没有缓存实现之后,HTML仍然缓存

I am building the following site: princeton staffing solutions.

In it, I use the following HTML meta tags

<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />

Unfortunately, it's still acting as before I added these tags. I make database updates and I need to hard refresh the site to see the changes. Is there something I'm doing incorrectly?

I also do this in my PHP before i run the application code:

header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

I don't know why but I can't get it to send fresh data

Do you think it's possible that this issue has to do with Godaddy's Servers? I mean I'm clearly using the meta tags and header calls correctly so my only indication is that its something internal with Godaddy?

I also have removed gzip as Content-Encoding. (<meta http-equiv="Content-Encoding" content="gzip" >)

  • 写回答

1条回答 默认 最新

  • doukuang1897 2016-04-15 04:12
    关注

    3 possible ways :

    1. your browser is caching : remove cache , or even can change browser further can remove internet temporary files.

    2. Your ISP is caching : run your website on http://anonymouse.org/. If it's working there it's your ISP. Contact them.

    3. godaddy's server caching : You can ask for support.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分