Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:config:server_push [2020/08/13 15:13]
Jackson Zhang
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 51: Line 55:
 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 ====+==== Disable ls_smartpush cookie for a particular domain ====
  
-If you want to disable ​**ls_smartpush** cookie for a particular domain, you can use **SmartPush no-cookie** directive in .htaccess+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>​   <​IfModule LiteSpeed>​
Line 60: Line 64:
   ​   ​
 {{ :​litespeed_wiki:​config:​ls_smartpush_cookie.png?​800 |}} {{ :​litespeed_wiki:​config:​ls_smartpush_cookie.png?​800 |}}
- 
  
 {{ :​litespeed_wiki:​config:​ls_smartpush_cookie_2.png?​800 |}} {{ :​litespeed_wiki:​config:​ls_smartpush_cookie_2.png?​800 |}}
  
-After you make changes to .htaccess, you will need to restart ​Chrome/​Firefox ​to avoid getting cached version. ​It will look like:+After you make changes to ''​.htaccess''​, you will need to restart ​your browser ​to avoid getting ​cached version. ​After that, you should see something ​like the following:
  
 {{ :​litespeed_wiki:​config:​ls_smartpush_cookie_disable_cookie.png?​800 |}} {{ :​litespeed_wiki:​config:​ls_smartpush_cookie_disable_cookie.png?​800 |}}
  • Admin
  • Last modified: 2020/10/28 11:50
  • by Lisa Clarke