简体   繁体   English

WP火箭缓存问题

[英]WP rocket cache issue

I am working on a website and there is wp-rocket in a website.I have enabled the feature of cache.我在一个网站上工作,网站上有wp-rocket 。我启用了缓存功能。

Now problem is when wp rocket creates cache, it cannot show my css and js changes in website.So I have to hard dump the cache from website which is painstaking.现在的问题是当 wp Rocket 创建缓存时,它无法显示我的 css 和网站中的 js 更改。所以我必须从网站上硬转储缓存,这是很辛苦的。 Wp rocket supports cache busting technique but is not working.I have tested the query string to bust cache but it didn't work too. Wp rocket支持缓存破坏技术,但不工作。我已经测试了查询字符串以破坏缓存,但它也没有工作。 How can I resolve the issue without any custom solution and using wp rocket plugin ?如何在没有任何自定义解决方案并使用wp rocket plugin的情况下解决该问题?

use versioning when updating the css files更新 css 文件时使用版本控制

style.css?ver=1 style.css?ver=1

so when doing any change just update the file version.因此,在进行任何更改时只需更新文件版本。 Check this link 检查此链接

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

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