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
Next revision Both sides next revision
litespeed_wiki:cache:lscdrupal [2018/04/18 16:20]
Lisa Clarke [LiteSpeed Cache for Drupal 8] Added link to rewrite rules
litespeed_wiki:cache:lscdrupal [2018/12/11 14:34]
Jackson Zhang
Line 15: Line 15:
 Download the LiteSpeed Cache Module to your local computer from [[https://​github.com/​litespeedtech/​lscache-drupal/​archive/​master.zip|our GitHub repository]]. Download the LiteSpeed Cache Module to your local computer from [[https://​github.com/​litespeedtech/​lscache-drupal/​archive/​master.zip|our GitHub repository]].
  
-=====Enable LiteSpeedCache ​using rewrite rules=====+=====Enable LiteSpeedCache ​lookup by placing the following to .htaccess at Doc_Root ​===== 
 + 
 +Place the following into .htaccess:
  
 <​code>​ <​code>​
Line 35: Line 37:
   * Check the checkbox next to ''​LiteSpeed Cache''​.   * Check the checkbox next to ''​LiteSpeed Cache''​.
   * Click **Install**.   * Click **Install**.
 +
 +===== Verify/Test if LiteSpeed cache is working or not  =====
 +You will need to check the response header "​X-LiteSpeed-Cache:​ hit" from browser developer tools to ensure LiteSpeed cache is working.
 +
 +You can verify a page is being served from LiteSpeed cache through the following steps:
 +
 +  - Open the Chrome/​Firefox developer tools on a non-logged-in browser and navigate to your site. Open the Network tab.
 +  - Refresh the page.
 +  - Click the first resource (this should be an HTML file and the resource'​s headers should appear) and ensure you can see "​X-LiteSpeed-Cache:​ hit"
 +  - If you see "​X-LiteSpeed-Cache:​ miss", refresh the page and check the header again.
 +  - If you can not see "​X-LiteSpeed-Cache:​ hit" header and it means LiteSpeed is not working yet/not enable properly yet. Please go back to the above steps to see if any steps missed. ​
  
 =====Configuration===== =====Configuration=====
  • Admin
  • Last modified: 2020/08/19 18:29
  • by Lisa Clarke