How input for Expires Settings ?

wpf

Active Member
#1
I test make server level cache from litespeed admin: Configuration => Server => Expires Settings

I get error notice

*invalid format - text/css=A|M31536000, please check syntax invalid format - application/x-javascript=A|M31536000, please check syntax invalid format - application/javascript=A|M31536000, please check syntax invalid format - application/x-font-ttf=A|M31536000, please check syntax
How to cache all font model include like fontawesome and other font?

Screenshot (299).png
 

serpent_driver

Well-Known Member
#2
The Expire header is an outdated method to control the cache behaviour of static sources since it is more likely used as a fallback for older or outdated browsers. Also, the Expire header controls the cache or the TTL by the date create time of a source. Cache-control controls the TTL by access time of a source and is more flexible as the Expire header. You should better use cache-control header, but has to be defined for each virtual host in .htaccess or in PHP.

LiteSpeed should remove this configuration from WebAadmin console....
 
Top