从12月开始,Gmail会缓存所有图像。
现在,动态图像(例如倒数计时)将无法正常工作。缓存完图片后,计时器会显示该时间,即Google缓存图片的时间,并且不会自行更新。
我找到了一个修复程序(以及希望帮助他们进一步解释的人):http : //blog.movableink.com/real-time-content-and-re-open-tracking-return-to-gmail/
现在我的问题是:我该怎么办?
我尝试在标题中添加“ no-cache”和“ max-age = 0”,但Gmail仍在对其进行缓存。
这是我的完整标题
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
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' );
Run Code Online (Sandbox Code Playgroud)
我也尝试过只使用“ no-cache”和“ max-age”以及其他组合,似乎没有任何效果。
有什么建议么?