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 Both sides next revision
litespeed_wiki:cache:no-plugin-advanced:esi-support [2019/01/24 17:29]
Lisa Clarke Folded Cache Control Response Header into Enabling ESI
litespeed_wiki:cache:no-plugin-advanced:esi-support [2019/02/04 10:28]
qtwrk [Response Headers]
Line 72: Line 72:
  
 The ESI resource needs to set response headers in order to be cached correctly. ''​X-LiteSpeed-Cache-Control''​ needs to be set like a normal cache entry (i.e. ''​public''/''​private''/''​shared''/''​no-cache,​ max-age''​) The ESI resource needs to set response headers in order to be cached correctly. ''​X-LiteSpeed-Cache-Control''​ needs to be set like a normal cache entry (i.e. ''​public''/''​private''/''​shared''/''​no-cache,​ max-age''​)
- +  ​
   <?php   <?php
   header('​X-LiteSpeed-Cache-Control:​ public, max-age=120,​ esi=on'​);​   header('​X-LiteSpeed-Cache-Control:​ public, max-age=120,​ esi=on'​);​
  • Admin
  • Last modified: 2020/12/10 14:36
  • by Lisa Clarke