Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
litespeed_wiki:config:server_push [2017/10/24 19:04] Lisa Clarke [Configure CDN to use Server Push] |
litespeed_wiki:config:server_push [2020/10/28 11:34] Lisa Clarke [Requirements] added HTTP/3 |
||
---|---|---|---|
Line 5: | Line 5: | ||
- LiteSpeed Enterprise 5.2+ | - LiteSpeed Enterprise 5.2+ | ||
- [[https://www.litespeedtech.com/products/litespeed-web-server/features/http-2-support/enabling-https | HTTPS]] enabled | - [[https://www.litespeedtech.com/products/litespeed-web-server/features/http-2-support/enabling-https | HTTPS]] enabled | ||
- | - HTTP/2 supported by the browser | + | - HTTP/2 supported by the browser (you may also use HTTP/3 for server push, if the browser supports it) |
===== Setup and Verification===== | ===== Setup and Verification===== | ||
Line 21: | Line 21: | ||
There are two easy ways to verify your browser has HTTP/2 support: | There are two easy ways to verify your browser has HTTP/2 support: | ||
- | - Check your browser version against the table at [[http://caniuse.com/#search=http2 | this link]].\\ | + | - Check your browser version against the table at [[http://caniuse.com/#search=http2 | this link]]. \\ {{:litespeed_wiki:config:push-6.png?|}} |
- | {{:litespeed_wiki:config:push-6.png?|}} | + | - Visit the [[ https://http2.akamai.com/demo | Akamai online tool]] and let it auto-detect your browser's support. \\ {{:litespeed_wiki:config:push-7.png?|}} |
- | - Visit the [[ https://http2.akamai.com/demo | Akamai online tool]] and let it auto-detect your browser's support.\\ | + | |
- | {{:litespeed_wiki:config:push-7.png?|}} | + | |
====Configure LSCache to use Server Push==== | ====Configure LSCache to use Server Push==== | ||
Line 34: | Line 32: | ||
* If you only enabled **CSS HTTP/2 Push**, the response header will look like this: \\ {{:litespeed_wiki:config:push-1.png?|}} \\ | * If you only enabled **CSS HTTP/2 Push**, the response header will look like this: \\ {{:litespeed_wiki:config:push-1.png?|}} \\ | ||
* If you enabled both **CSS HTTP/2 Push** and **JS HTTP/2 Push**, the response header will look like this: \\ {{:litespeed_wiki:config:push-2.png?|}} \\ | * If you enabled both **CSS HTTP/2 Push** and **JS HTTP/2 Push**, the response header will look like this: \\ {{:litespeed_wiki:config:push-2.png?|}} \\ | ||
+ | |||
+ | css and js files will show as **Push / Other**: | ||
+ | |||
+ | {{:litespeed_wiki:config:ls_severpush.png?800|}} | ||
====Configure CDN to Use Server Push==== | ====Configure CDN to Use Server Push==== | ||
Line 52: | Line 54: | ||
We welcome your feedback on our [[https://www.litespeedtech.com/support/forum/ | forum]]. | We welcome your feedback on our [[https://www.litespeedtech.com/support/forum/ | forum]]. | ||
+ | |||
+ | ==== Disable ls_smartpush cookie for a particular domain ==== | ||
+ | |||
+ | If you want to disable the ''ls_smartpush'' cookie for a particular domain, you can use the ''SmartPush no-cookie'' directive in ''.htaccess'' starting from LSWS v5.4.2. | ||
+ | |||
+ | <IfModule LiteSpeed> | ||
+ | SmartPush no-cookie | ||
+ | </IfModule> | ||
+ | | ||
+ | {{ :litespeed_wiki:config:ls_smartpush_cookie.png?800 |}} | ||
+ | |||
+ | {{ :litespeed_wiki:config:ls_smartpush_cookie_2.png?800 |}} | ||
+ | |||
+ | After you make changes to ''.htaccess'', you will need to restart your browser to avoid getting a cached version. After that, you should see something like the following: | ||
+ | |||
+ | {{ :litespeed_wiki:config:ls_smartpush_cookie_disable_cookie.png?800 |}} |