Setting Up Custom Headers Not Work

#1
I use cyberpanel + openlitespeed and want to set the browser cache litespeed cache plugin.
I'm seeing a notification "OpenLiteSpeed users please check this: Setting Up Custom Headers"



I followed the directions for Wordpress settings from https://openlitespeed.org/kb/how-to-set-up-custom-headers/#Setting_Up_Custom_Headers

I followed all the directions for wordpress but the results are not as stated on the guide page

My result
respon headers
  1. alt-svc:
    h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46"
  2. content-encoding:
    gzip
  3. content-length:
    17305
  4. content-type:
    text/html; charset=UTF-8
  5. date:
    Thu, 15 Dec 2022 15:35:53 GMT
  6. link:
    <https://yaybob.or.id/wp-json/>; rel="https://api.w.org/"
  7. server:
    LiteSpeed
  8. vary:
    Accept-Encoding
  9. x-litespeed-cache:
    hit

Am I doing the settings wrong or is there something else?
 

Attachments

Cold-Egg

Administrator
#2
Hi, it will apply to static files.
See https://yaybob.or.id/wp-includes/css/dist/block-library/style.min.css
Code:
accept-ranges: bytes
access-control-allow-origin: *
alt-svc: h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46"
cache-control: public, max-age=15552000
content-encoding: br
content-length: 11434
content-type: text/css
date: Fri, 16 Dec 2022 00:31:43 GMT
etag: "172a9-639ac162-2772d8;br"
expires: Wed, 14 Jun 2023 00:31:43 GMT
last-modified: Thu, 15 Dec 2022 06:40:34 GMT
server: LiteSpeed
vary: Accept-Encoding
 

LiteCache

Active Member
#3
I use cyberpanel + openlitespeed and want to set the browser cache litespeed cache plugin.
I'm seeing a notification "OpenLiteSpeed users please check this: Setting Up Custom Headers"
There is no need to set custom headers in Cyberpanel or OLS. Everything you have to do is to enable browser cache in cache plugin and set the value for TTL to: 31536000. This is the expected value for Pagespeed and a good score.

That's it.
 
#4
Hi, it will apply to static files.
See https://yaybob.or.id/wp-includes/css/dist/block-library/style.min.css
Code:
accept-ranges: bytes
access-control-allow-origin: *
alt-svc: h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46"
cache-control: public, max-age=15552000
content-encoding: br
content-length: 11434
content-type: text/css
date: Fri, 16 Dec 2022 00:31:43 GMT
etag: "172a9-639ac162-2772d8;br"
expires: Wed, 14 Jun 2023 00:31:43 GMT
last-modified: Thu, 15 Dec 2022 06:40:34 GMT
server: LiteSpeed
vary: Accept-Encoding
Hello thanks for your reply . i got it
 
Top