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
Hi Salvatore
Its already enabled. I recativated the site a few times when troubesoothing, no go. Should I disable it?
Interesting – Whether I enable that option or not..the htaccess.conf shows no entries from your plugin for cloudflare
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.
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!
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.
Hi @kenzi12 ,
I’m glad you solved it 🙂
I am rarely on slack due of work. How about writing me an email?