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:45] Lisa Clarke [Verify Browser Supports HTTP/2] |
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 32: | 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 50: | 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 |}} |