• Resolved tripledm

    (@tripledm)


    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I am not sure what do you mean by “surrogate header”

    could you please explain with some more detail ?

    Best regards,

    Thread Starter tripledm

    (@tripledm)

    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.

    Plugin Support qtwrk

    (@qtwrk)

    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,

    Thread Starter tripledm

    (@tripledm)

    we have Apache

    Plugin Support qtwrk

    (@qtwrk)

    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,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Litespeed & Fastly’ is closed to new replies.