• Resolved erikdemarco

    (@erikdemarco)


    When I deactivate all cache. And only activate browser cache. It won’t send “cache-control: max-age:t” which will make browser cache the content. But If I activate page cache it will send those cache control.

    I dont need page cache because I already have nginx cache. Which is much more faster.

    Is there any way to activate this “browser cache” feature and disabled all the other?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @erikdemarco

    Thank you for your question and I am happy to help!
    I’ve tested this in the nginx environment, using only Browser Cache, and the Browser cache rules are applied (Cache-control, expires header, gzip, etag and CSP)
    Can you please share the website URL and have you tried purging the Nginx cache after enabling Browser Cache?
    Also, please check nginx. conf and make sure W3TC rules are there.
    Thanks!

    Thread Starter erikdemarco

    (@erikdemarco)

    Hi I found nginx.conf in my site public_html added by w3tc.
    What is the purpose of this file?
    Can nginx autoload this file?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @erikdemarco

    If you check the nginx.conf file, it contains the rewrite rules for Browser Caching added by W3 Total Cache.
    The way nginx and its modules work is determined in the configuration file. By default, the configuration file is named nginx.conf and placed in the directory /usr/local/nginx/conf, /etc/nginx, or /usr/local/etc/nginx.
    Check if you have nginx.conf there and copy the W3TC blocks from public_html to existing nginx.conf file.
    You can check the rules based on the configuration in Perfomance>Install

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Browser Cache Not Active.’ is closed to new replies.