Litespeed & Fastly




Wordpress LScache Plugin: Litespeed & Fastly

Last Updated on: Wed, 15 Apr 2026 00:00:02
How do I control the headers for Fastly in Litespeed? Fastly requires surrogate headers to be sent but the plugin itself excludes any headers for it so it would be absolutely perfect if Litespeed has fastly support out the box. Hi, I am not sure what do you mean by surrogate header could you please explain with some more detail ? Best regards, Hello, Fastly uses custom headers so that the CDN cache is controlled separately from the browser cache header. Surrogate-Control: max-age=86400, stale-while-revalidate=60 This can be controlled via the Fastly plugin but when any other cache plugin is installed it does not insert the headers. Fastl docs on headers here. Hi, so you mean Fastly requires origin to send out these headers ? Surrogate-Control: max-age=86400, stale-while-revalidate=60 What is your webserver ? Best regards, we have Apache Hi, then you can use apache way to set header for it add Header set Surrogate-Control max-age=86400, stale-while-revalidate=60 into .htaccess ought do it but remember to add filematch or SetEnv to put this header only over static resources Best regards,



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference