Let me start by making it clear: I DO NOT know anything about cache and how it works. I just want to warm the cache so my customers have the best experience they can and I do not want to spend time anymore manually warming the cache manually. I'm tired...
I've had a hard time getting the cache to work the way I 'Think' it should work. I have to warm up the cache manually by going through all the menu items both on the iPhone and the Desktop!
Why didn't the CLI command create a cached copy of that URL?
LiteSpeed ESI Feature: Disabled
Seperate View for Logged-in Users: Disabled
Separate View for Mobile Device: Tried Enabled and Disabled
Separate View for Safari Browser: Tried Enabled and Disabled
I tried this .htaccess file:
<IfModule LiteSpeed>
CacheEngine on crawler
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{HTTP_USER_AGENT} "iPhone|iPod|Petal|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini|Fennec" [NC]
RewriteRule .* - [E=Cache-Control:vary=isMobile]
RewriteCond %{HTTP_USER_AGENT} "bot|compatible|images|cfnetwork|favicon|facebook|crawler|spider|addthis" [NC]
RewriteCond %{HTTP_USER_AGENT} !Chrome [NC]
RewriteCond %{HTTP_USER_AGENT} !Mobile [NC]
RewriteCond %{HTTP_USER_AGENT} !Macintosh [NC]
RewriteRule .* - [E=Cache-Control:vary=isBot]
RewriteCond %{HTTP_USER_AGENT} Bot [NC]
RewriteCond %{HTTP_USER_AGENT} Android [NC]
RewriteCond %{HTTP_USER_AGENT} Chrome [NC]
RewriteRule .* - [E=Cache-Control:vary=ismobilebot]
RewriteCond %{HTTP_USER_AGENT} Macintosh [NC]
RewriteRule .* - [E=Cache-Control:vary=isMac]
RewriteCond %{HTTP_USER_AGENT} "iPhone|iPad|Petal" [NC]
RewriteRule .* - [E=Cache-Control:vary=ismobileapple]
RewriteCond %{HTTP_USER_AGENT} Android [NC]
RewriteCond %{HTTP_USER_AGENT} "Chrome|Firefox|Opera|OPR" [NC]
RewriteCond %{HTTP_USER_AGENT} !Bot [NC]
RewriteRule .* - [E=Cache-Control:vary=ismobile]
### marker WEBP start ###
RewriteCond %{HTTP_ACCEPT} "image/webp" [or]
RewriteCond %{HTTP_USER_AGENT} "Page Speed"
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).*Safari
RewriteCond %1 >13
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
### marker WEBP end ###
</IfModule>
And I tried this basic .htaccess file too:
CacheEngine on crawler
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
PHP Version 7.4
Opencart 3.0.3.7
Journal 3
Shared Server
I've tried every combination of settings and I never get a hit on the first page load.
I really need help.
I've had a hard time getting the cache to work the way I 'Think' it should work. I have to warm up the cache manually by going through all the menu items both on the iPhone and the Desktop!
- I delete all the files in the lscache directory
- I run this CLI command: curl -N "https://fragnanimous.com/index.php?route=extension/module/lscache/recache&from=cli"
- I look in the directory and there are growing amount of listings, so it appears to be warming the cache
- I take one of the URL's that was cached via CLI, I've tried many URL's and no cache hits
- I paste the URL in my windows 10 desktop and it shows a cache MISS
- I refresh the page and it shows a HIT
Why didn't the CLI command create a cached copy of that URL?
LiteSpeed ESI Feature: Disabled
Seperate View for Logged-in Users: Disabled
Separate View for Mobile Device: Tried Enabled and Disabled
Separate View for Safari Browser: Tried Enabled and Disabled
I tried this .htaccess file:
<IfModule LiteSpeed>
CacheEngine on crawler
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{HTTP_USER_AGENT} "iPhone|iPod|Petal|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini|Fennec" [NC]
RewriteRule .* - [E=Cache-Control:vary=isMobile]
RewriteCond %{HTTP_USER_AGENT} "bot|compatible|images|cfnetwork|favicon|facebook|crawler|spider|addthis" [NC]
RewriteCond %{HTTP_USER_AGENT} !Chrome [NC]
RewriteCond %{HTTP_USER_AGENT} !Mobile [NC]
RewriteCond %{HTTP_USER_AGENT} !Macintosh [NC]
RewriteRule .* - [E=Cache-Control:vary=isBot]
RewriteCond %{HTTP_USER_AGENT} Bot [NC]
RewriteCond %{HTTP_USER_AGENT} Android [NC]
RewriteCond %{HTTP_USER_AGENT} Chrome [NC]
RewriteRule .* - [E=Cache-Control:vary=ismobilebot]
RewriteCond %{HTTP_USER_AGENT} Macintosh [NC]
RewriteRule .* - [E=Cache-Control:vary=isMac]
RewriteCond %{HTTP_USER_AGENT} "iPhone|iPad|Petal" [NC]
RewriteRule .* - [E=Cache-Control:vary=ismobileapple]
RewriteCond %{HTTP_USER_AGENT} Android [NC]
RewriteCond %{HTTP_USER_AGENT} "Chrome|Firefox|Opera|OPR" [NC]
RewriteCond %{HTTP_USER_AGENT} !Bot [NC]
RewriteRule .* - [E=Cache-Control:vary=ismobile]
### marker WEBP start ###
RewriteCond %{HTTP_ACCEPT} "image/webp" [or]
RewriteCond %{HTTP_USER_AGENT} "Page Speed"
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).*Safari
RewriteCond %1 >13
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
### marker WEBP end ###
</IfModule>
And I tried this basic .htaccess file too:
CacheEngine on crawler
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
PHP Version 7.4
Opencart 3.0.3.7
Journal 3
Shared Server
I've tried every combination of settings and I never get a hit on the first page load.
I really need help.