• Resolved kenzi12

    (@kenzi12)


    I have re checked configuration mutile times, still keep getting the same message , Cache expired, try again.

    Any ideas?

    Logs dont show anything at all around CD communication, only some plugin info.

    Headers can be tested:

    https://gianikulwant.singhc.com

    • This topic was modified 4 years, 10 months ago by kenzi12.
    • This topic was modified 4 years, 10 months ago by kenzi12.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hello,
    try to enable the option “Overwrite the cache-control header for WordPress’s pages using web server rules” and re-test

    Let me know

    Thread Starter kenzi12

    (@kenzi12)

    Hi Salvatore

    Its already enabled. I recativated the site a few times when troubesoothing, no go. Should I disable it?

    Thread Starter kenzi12

    (@kenzi12)

    Interesting – Whether I enable that option or not..the htaccess.conf shows no entries from your plugin for cloudflare

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi,
    is your .htaccess writable?

    I see you are also using mod pagespeed. Disable it for page caching ’cause it overwrite the cache-control response header.

    Thread Starter kenzi12

    (@kenzi12)

    Ok thanks I will try this. Few queries:

    1. Im using this w3c caching with minify disabled.
    I have CF doing minify on css / js. Is that okay?

    2. Also is mod pagespeed a CF portal setting or your plugin setting?

    3. Im using bitnami aws image, for which there is no .htaccess file, but
    /opt/bitnami/apps/wordpress/conf/htaccess.conf.

    bitnami@ip:/opt/bitnami/apps/wordpress/conf$ cat htaccess.conf 
    <Directory "/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/akismet">
    # Only allow direct access to specific Web-available files.
    
    # Apache 2.2
    <IfModule !mod_authz_core.c>
    Order Deny,Allow
    Deny from all
    </IfModule>
    
    # Apache 2.4
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    
    # Akismet CSS and JS
    <FilesMatch "^(form\.js|akismet\.js|akismet\.css)$">
    <IfModule !mod_authz_core.c>
    Allow from all
    </IfModule>
    
    <IfModule mod_authz_core.c>
    Require all granted
    </IfModule>
    </FilesMatch>
    
    # Akismet images
    <FilesMatch "^logo-full-2x\.png$">
    <IfModule !mod_authz_core.c>
    Allow from all
    </IfModule>
    
    <IfModule mod_authz_core.c>
    Require all granted
    </IfModule>
    </FilesMatch>
    </Directory>

    Your help is much appreciated!

    Thread Starter kenzi12

    (@kenzi12)

    Hi Salvatore

    I fixed this by disabling mod pagespeed
    https://docs.bitnami.com/bch/apps/wordpress/administration/use-pagespeed/

    FYI latest bitnami images dont have .htaccess rather htaccess.conf
    https://docs.bitnami.com/oci/apps/wordpress/administration/use-htaccess/

    Many thanks for your help. I can see the CF cache cookie/header as HIT now in response.

    Are you on slack by any chance?
    I wanted to check something with you.

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi @kenzi12 ,
    I’m glad you solved it ??

    I am rarely on slack due of work. How about writing me an email?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cache expired’ is closed to new replies.