cannot get caching working
-
Hi,
I can see
cf-cache-status: HIT
on many assets, but never on first html request.Its always:
cache-control: no-store, no-cache, must-revalidate, max-age=0 cf-cache-status: BYPASS
Also, in log I can see that pages that are not supposed to be cached, are being preloaded.
[2022-03-13 19:42:26] [preloader::task] Preloading URL https://vfxtricks.com/my-account/ [2022-03-13 19:42:30] [preloader::task] Preloading URL https://vfxtricks.com/checkout/
Here is my .htaccess
# BEGIN LSCACHE # END LSCACHE # BEGIN NON_LSCACHE # END NON_LSCACHE # BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Header always set Content-Security-Policy "upgrade-insecure-requests; </IfModule> # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php74” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-ea-php74 .php .php7 .phtml </IfModule> # php -- END cPanel-generated handler, do not edit # BEGIN WP Cloudflare Super Page Cache # The directives (lines) between "BEGIN WP Cloudflare Super Page Cache" and "END WP Cloudflare Super Page Cache" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_headers.c> Header unset Set-Cookie "expr=resp('x-wp-cf-super-cache-active') == '1'" Header always unset Set-Cookie "expr=resp('x-wp-cf-super-cache-active') == '1'" </IfModule> <IfModule mod_expires.c> ExpiresActive on ExpiresByType application/xml "access plus 0 seconds" ExpiresByType text/xsl "access plus 0 seconds" </IfModule> <FilesMatch "\.(xml|xsl)$"> <IfModule mod_headers.c> Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0" </IfModule> </FilesMatch> <FilesMatch "robots\.txt"> <IfModule mod_headers.c> Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0" </IfModule> </FilesMatch> <IfModule mod_rewrite.c> RewriteCond %{REQUEST_URI} ^(.*)?/wp-content/wp-cloudflare-super-page-cache/vfxtricks.com/debug.log(.*)$ RewriteRule ^(.*)$ - [F] </IfModule> <FilesMatch "wp-cron.php"> <IfModule mod_headers.c> Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0" </IfModule> </FilesMatch> # END WP Cloudflare Super Page Cache
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘cannot get caching working’ is closed to new replies.