• Resolved mamalos

    (@mamalos)


    Hi again,

    I’ve installed w3tc on wordpress 5.2 on a SmartOS zone. I’ve enabled browser caching, but the options “cache with max-age” and “cache with max-age and validation” are not available.

    Based on my previous experience with the same plugin, redis and the same setup, I’m suspecting it’s some dependency issue again.

    Here’s a sample curl’s output when I directly call my web server: https://pastebin.com/PMRtNxub .

    All other static contents (js, css, etc) are served with caching headers as expected.

    Thanks for any help in advance!

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

    (@vmarko)

    Hello @mamalos,

    On Nginx, if the “expires” option is enabled, max-age directives don’t work separately due to the incompatibility.

    Thread Starter mamalos

    (@mamalos)

    Hmmm…not sure I follow. W3TC generates its nginx configuration options by default in PATHTODOCROOT/nginx.conf, which I include in my nginx config. This generated file, depending on W3TC options one selects, and usually contains various “expires” options in different stanza’s.

    That said, I don’t have any other expires option in the location / or in any other more generic namespace. So, where do you suggest me to remove it from?

    Moreover, what incompatibility are we talking about? And how is it affecting W3TC options on its drop-down menu which makes the aforementioned options non-selectable? (Ah, I now re-read my original post and I just saw that I’m saying “…are not available” where I should have written “…are not selectable”).

    Thanks again!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    When using Nginx, in Performance>Browser Cache, if the Set expires header option is enabled, max-age directives are greyed out. We’ve disabled a selection of max-age directives if Set expires header option is enabled as those two values are incompatible. So if you want to user max-age directives, you should disable Set expires header.

    Thread Starter mamalos

    (@mamalos)

    Hi there, and thanks for the clarification.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“cache with max-age” not available in Browser cache.’ is closed to new replies.