简体   繁体   English

亚马逊S3上的缓存问题

[英]Caching issues on amazon S3

I am a beginner at this and I am trying to update HTML and CSS files on Amazon S3. 我是一个初学者,我正在尝试更新Amazon S3上的HTML和CSS文件。 The backend of our website is hosted on Heroku and the front-end is on Amazon S3. 我们网站的后端托管在Heroku上,前端位于Amazon S3上。

When I update a CSS file, I can see the changes directly in my browser every time I refresh the page. 更新CSS文件时,每次刷新页面时,都可以直接在浏览器中查看更改。 BUT, for updates on HTML pages, the changes are not taken into account when I refresh the page in my browser. 但是,对于HTML页面上的更新,当我在浏览器中刷新页面时,不会考虑这些更改。

Any solution for me? 有什么解决办法吗? I looked into the caching options but I can't fix it.. 我研究了缓存选项,但无法解决。

Thanks 谢谢

Check out this question. 看看这个问题。 Amazon S3 and Cloudfront cache, how to clear cache or synchronize their cache Basically you need to clear the cache on S3. Amazon S3和Cloudfront缓存,如何清除缓存或同步其缓存基本上,您需要清除S3上的缓存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM