最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugin development - W3 Total Cache JS and css Minify folder are empty

programmeradmin4浏览0评论

When i enable Multisite using subdirectories function and minify file status “404” so my multisite subdirectory not working properly, because minify folder are empty /var/www/html/wp-content/cache/minify/*empty .

Website:

# BEGIN W3TC Minify cache
location ~ /hindi/wp-content/cache/minify/.*js_gzip$ {
    gzip off;
    types {}
    default_type application/x-javascript;
    add_header Content-Encoding gzip;
    expires 31536000s;
    etag on;
    if_modified_since exact;
    add_header Pragma "public";
    add_header Cache-Control "public";
    add_header X-Powered-By "W3 Total Cache/0.13.2";
    add_header Referrer-Policy "no-referrer-when-downgrade";
    add_header Vary "Accept-Encoding";
}
location ~ /hindi/wp-content/cache/minify/.*css_gzip$ {
    gzip off;
    types {}
    default_type text/css;
    add_header Content-Encoding gzip;
    expires 31536000s;
    etag on;
    if_modified_since exact;
    add_header Pragma "public";
    add_header Cache-Control "public";
    add_header X-Powered-By "W3 Total Cache/0.13.2";
    add_header Referrer-Policy "no-referrer-when-downgrade";
    add_header Vary "Accept-Encoding";
}

Helps you. About my server:

  • Nginx
  • WordPress Multisite
  • Php 7.2
  • Cloudflare Full Site Delivery (Cache everything)

Thank you. Let me know your feedback. Best regards.

发布评论

评论列表(0)

  1. 暂无评论