====== Cache Header Appears on the Homepage But Not on All Product Pages ======
I can see the ''x-litespeed-cache: hit,litemage'' header on the homepage and catalog pages, but not on any product pages. Why?
Homepage:
{{ :litespeed_wiki:cache:litemage2:troubleshooting:litemage2-cache-non-cacheable-page1.png?600 |}}
Product page:
{{ :litespeed_wiki:cache:litemage2:troubleshooting:litemage2-cache-non-cacheable-page2.png?600 |}}
It is possible one of your layouts contains the string ''cacheable="false"''. If this is found in the default layout, it's likely the whole site won't be cached at all. If it appears in another layout, then a particular route (such as all product pages) won't be cached.
To see if this is happening in one of your layouts, ssh to the ''app'' folder of your Magento2 installation, and execute the following:
grep -r cacheable * | grep xml | grep -v js | grep false
You will see something similar to this:
code/Lof/RewardPoints/view/frontend/layout/rewardpoints_redeemcode_index.xml:
code/Lof/RewardPoints/view/frontend/layout/rewardpoints_transactions_index.xml:
code/Lof/RewardPoints/view/frontend/layout/rewardpoints_settings_index.xml:
code/Lof/RewardPoints/view/frontend/layout/rewardpoints_index_index.xml:
code/Lof/RewardPoints/view/frontend/layout/rewardpoints_index_index.xml:
code/Lof/RewardPoints/view/frontend/layout/customer_account_index.xml:
code/Lof/RewardPointsBehavior/view/frontend/layout/catalog_product_view.xml:
code/Lof/RewardPointsRule/view/frontend/layout/catalog_product_view.xml:
code/Plumrocket/Newsletterpopup/view/frontend/layout/prnewsletterpopup_index_preview.xml: