litespeedtech / magento2-LiteSpeed_LiteMage

LiteMage Cache Extension for Magento 2

Home Page:https://www.litespeedtech.com/products/litespeed-web-cache/litemage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Checkout not working

6Ways opened this issue · comments

commented

When Lite Mage is activated in my Magento 2.1 installation, checkout no longer works. I have tried several .htaccess rules, but none seems to work. Does anyone have a suggestion for this problem?

Are you using the default demo store or your own customized theme? any special checkout module used?

commented

Thanks for your quick response. I use the Luma magento theme with only some css adjustments through a fallback theme. A number of self-written modules, but no checkout module (except a payment module).

When I want to checkout or cart, Magento indicates that the cart is empty. The mini cart works well.

commented

Okay, I have now been working for how far I can test it. Maybe it has something to do with the mulistore environment? I also had problems with the Product Added to Cart Success Message, which came on every page view. Using the following lines in the .htaccess, it works now.

RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{HTTP_COOKIE} !mage-cache-sessid
RewriteCond %{ORG_REQ_URI} !^/admin/
RewriteCond %{ORG_REQ_URI} !^/cart/
RewriteCond %{ORG_REQ_URI} !^/checkout/
RewriteRule .* - [E=Cache-Control:max-age=300]