我正在使用W3 Total Cache,并且工作正常。更新Wordpress之后,我突然开始在网站上出现JS和CSS加载问题。我检查了Chrome DevTools控制台,缩小的js和css文件出现这些错误“无法加载资源”。然后,我安装了Autooptimize插件,现在出现了相同的错误:
autoptimize_single_5ee990907b315027da600eeeaee2e04b.js:1 Failed to load resource: the server responded with a status of 403 ()
Refused to apply style from 'https://site/wp-content/cache/autoptimize/css/autoptimize_8ddffc35874a442e23f067ea66798a49.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
我通过FTP将/ wp-content / cache /中的所有文件和文件夹的权限设置为755,从而解决了该问题。