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

    (@qtwrk)

    Hi,

    Please check this page

    This will require root privilege , if you don’t have it , please kindly

    code snippet for that should be like this

    https://static.litespeed.dev/s/t7ak4

    Best regards,

    Thread Starter signofgrey

    (@signofgrey)

    Hi,

    Thanks. I’ve implemented what’s in the guide and added Cache-control max-age=86400 to the custom config.

    I can see the request header that max-age is present and PageSpeed insights tell me browser cache is 1 day (we make change to css etc right now, so don’t want to go for too long).

    Do I need to do anything else for browser caching to work properly for all static resources?

    Br,

    • This reply was modified 4 years, 1 month ago by signofgrey.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    could you please post the full header on your static resources ?

    Best regards,

    Thread Starter signofgrey

    (@signofgrey)

    Hi,

    Here is a full request: https://paste.pics/8b0340aa7c3f893c5224eab64ddb0755

    Br,

    Plugin Support qtwrk

    (@qtwrk)

    it looks OK

    if you have enabled CSS combine/minify in LSCWP, you can extend it max-age

    each time you edit CSS, and purge LSCWP cache , the newly generated css file will have different query and will force browser to fetch from server again

    Thread Starter signofgrey

    (@signofgrey)

    Thanks for all the help ??

    Br,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to activate browser Cache with OLS + Direct Admin’ is closed to new replies.