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
litespeed_wiki:cache:no-plugin-typo3 [2017/04/25 20:44]
Michael Alegre [Rewrite rules]
litespeed_wiki:cache:no-plugin-typo3 [2017/04/25 20:59]
Michael Alegre [I set rewrite rules according to the wiki, but why my admin pages being cached?] Changed title and edited content to read better.
Line 30: Line 30:
 ===== Verify Cache Setup ===== ===== Verify Cache Setup =====
  
-Open your browsers inspector, by right-clicking and selecting "​Inspector"​ or pressing the F12 key, and refresh the page. Under the "​Network"​ tab look for the HTML page you just loaded and clikc on it to view it's response header. ​+Open your browsers inspector, by right-clicking and selecting "​Inspector"​ or pressing the F12 key, and refresh the page. Under the "​Network"​ tab look for the HTML page you just loaded and click on it to view it's response header. ​
  
 In the response header you should see ''​X-LiteSpeed-Cache:​ hit''​ to indicate that the page was served from cache successfully. If you see ''​X-LiteSpeed-Cache:​ miss'',​ reload the page and check again. ​ In the response header you should see ''​X-LiteSpeed-Cache:​ hit''​ to indicate that the page was served from cache successfully. If you see ''​X-LiteSpeed-Cache:​ miss'',​ reload the page and check again. ​
Line 51: Line 51:
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
-==== I set rewrite rules according to the wiki, but why my admin pages being cached? ​==== +==== Admin Pages Still Being Cached After Setting Rewrite Rules ==== 
- The lscache could be incorrectly enabled ​on server level globallyYou can either ​correct ​the wrong lscache ​setting ​"Enable Public Cache" ​to "not set" or "​no" ​according to [[litespeed_wiki:​cache:​common_installation#​web_server_configuration|this recommendations]], or just disable global ​setting for a particular virtual host in .htaccess ​first before ​the rewrite rules.+ It is likely that LSCache is incorrectly enabled ​globally at the server level. ​This can be corrected ​either ​by changing ​the LSCache ​setting ​**Enable Public Cache** to "not set" or "​no" ​as recommended **[[litespeed_wiki:​cache:​common_installation#​web_server_configuration|here]]**, or by disabling the setting for a particular virtual host by adding ''​CacheDisable public /''​ to their .htaccess ​file before ​any rewrite rules like so:
  
   ########## Begin - Litespeed cache   ########## Begin - Litespeed cache
Line 64: Line 64:
   ########## End - Litespeed cache   ########## End - Litespeed cache
  
-Note: The "​CacheDisable public /" directive is used to help protect against globally enabled caching. The Rewrite rules will enable ​cache.+Note: The "​CacheDisable public /" directive is used to help protect against globally enabled caching. The Rewrite rules will enable ​caching as needed.
  
  • Admin
  • Last modified: 2017/04/25 20:59
  • by Michael Alegre