[英]How do you make Elementor changes visible without pressing CTRL + F5?
I'm currently using WordPress with Elementor to build a new website.我目前正在使用 WordPress 和 Elementor 来构建一个新网站。 I'm creating the website in Chrome, and viewing the website in Firefox.我正在 Chrome 中创建网站,并在 Firefox 中查看该网站。
When I make changes in Elementor in Chrome, and update/publish the changes, I have to press CTRL+F5 in Firefox to see the changes.当我在 Chrome 中的 Elementor 中进行更改并更新/发布更改时,我必须在 Firefox 中按 CTRL+F5 才能查看更改。
So Elementor must be updating a CSS file, with the same filename.因此 Elementor 必须更新具有相同文件名的 CSS 文件。
What can I do to ensure my Elementor changes are visible to everyone, without them having to press CTRL+F5 (force refresh) to see the changes?我该怎么做才能确保我的 Elementor 更改对所有人可见,而他们不必按 CTRL+F5(强制刷新)来查看更改?
Many thanks非常感谢
In this case, you shoud go to Elementor ->Tools->Update CSS/Style (something like that).在这种情况下,您应该转到 Elementor ->Tools->Update CSS/Style(类似的)。 If you are using a caching plugin, make sure to "clear the cache" too.如果您正在使用缓存插件,请确保也“清除缓存”。
Try to change the cache duration in .htacces尝试更改 .htacces 中的缓存持续时间
But I would recommend deactivating this setting after development.但我建议在开发后停用此设置。 Otherwise this can have negative consequences for your SEO (PageSpeed).否则这会对您的 SEO (PageSpeed) 产生负面影响。
# BEGIN Browser Cache
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css "access plus 300 seconds"
</IfModule>
# END Browser Cache
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.