My Blog Assets are Not Caching

#1
Hi,
I disabled Stackpath and currently, the blog is loading directly from the Origin Server. I checked the "x-litespeed-cache" for the static assets such as CSS, JS but I could not see those headers. Kindly help me to set x-litespeed-cache header for all assets.
 

Pong

Administrator
Staff member
#2
LiteSpeed cache is to cache dynamic contents, not static files. Static files can be cached by your CDN or setup browser cache to be cached in user's end.
 

serpent_driver

Well-Known Member
#3
LiteSpeed cache is to cache dynamic contents, not static files. Static files can be cached by your CDN or setup browser cache to be cached in user's end.
That's not completely right. LiteSpeed caches also static sources, if static sources like CSS are generated by PHP. Such static sources get cache header and can be found in /lscache directory. Cache plugin for WP has an own cache-control define for this.
 
#4
Thank you for your explanation. Can we able to visualize the expiration date/time of those assets cached by LiteSpeed?
What procedure do we need to do to see the value?
 
Top