我需要在Thesis Framework中强制刷新custom.css(I need to force a refresh of custom.css in the Thesis Framework)
有谁知道在论文中刷新custom.css的最佳方法? 我遇到了一个问题,由于custom.css的浏览器缓存,我的某些css没有得到实现。 我尝试在文件名中添加一个变量,如“custom.css?v = 1”,虽然这样可行,但每次加载页面时都会出错。 任何帮助,将不胜感激。 提前致谢。
Does anyone know the best way to refresh custom.css in Thesis? I'm running into a problem where some of my css isn't getting implemented due to browser caching of custom.css. I tried adding a variable to the filename like "custom.css?v=1" and while this works, it gives me an error every time I load the page. Any help would be appreciated. Thanks in advance.
最满意答案
您可以通过将此过滤器添加到custom_functions.php文件来禁用CSS缓存。
function cache_customcss() { return true; } add_filter('thesis_cache_query','cache_customcss');You can disable CSS caching by adding this filter to the custom_functions.php file.
function cache_customcss() { return true; } add_filter('thesis_cache_query','cache_customcss');更多推荐
发布评论