Cache not being served
-
* I realize this has been posted several times in the past few weeks, I’ve read them all, but many of the final resolutions are not included at the end of the thread ;/ So here it is again… browser cache not working (everything else does). Any help you can provide would be great. I promise to post the final resolution! ??
Summary: The cache is building fine in cache/all/ (there are files), but the files are not being served. There is not reference to WP Fastest Cache in my source at the bottom or anywhere.
– I’m using 3.8.1
– All minify CSS seems to be working. According to https://gtmetrix.com/reports/sunriseadvertising.com/JUNNt6Lu I still need to “Leverage browser caching” though!
– Permissions on .htaccess (644) and /cache/ (755) are correct.
– Yes, I have installed, then removed and reinstalled per instructions
– I have no other caching plugins installed. I prior installed WP Super Cache and had the same issue (browser caching not working and no reference in page source). This has to be a clue! It’s now uninstalled.
– I’ve cleared the cache and it rebuilds fineThanks so much!
My site is https://www.sunriseadvertising.com
Here is my entire .htaccess:
—
# BEGIN LBCWpFastestCache
<FilesMatch “\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|x-html|css|xml|js|woff|ttf|svg|eot)(\.gz)?$”>
<IfModule mod_expires.so>
ExpiresActive On
ExpiresDefault A0
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/ico A2592000
ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000
</IfModule>
<IfModule mod_headers.c>
Header set Expires “max-age=2592000, public”
Header unset ETag
</IfModule>
FileETag None
</FilesMatch>
# END LBCWpFastestCache
# BEGIN GzipWpFastestCache
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
# END GzipWpFastestCache
# BEGIN WpFastestCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{REQUEST_URI} !^/wp-login.php
RewriteCond %{REQUEST_URI} !^/wp-admin
RewriteCond %{REQUEST_URI} !^/wp-content
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\”]+ [NC]
RewriteCond %{HTTP:Profile} !^[a-z0-9\”]+ [NC]
RewriteCond /home/sunrisea/public_html/wp-content/cache/all/$1/index.html -f
RewriteRule ^(.*) “/wp-content/cache/all/$1/index.html” [L]
</IfModule>
# END WpFastestCache
#DO NOT REMOVE THESE RULES!
# BEGIN s2Member GZIP exclusions
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR]
RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1
RewriteRule .* – [E=no-gzip:1]
</IfModule>
# END s2Member GZIP exclusions
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress—
- The topic ‘Cache not being served’ is closed to new replies.