We are experiencing an issue where our website for whatever reason will run into cache issues, to where the customers will get into situations like trying to go to Checkout, but instead of going to the checkout page, it just redirects to the home page.

To solve this, they need to go into their cache and cookies, delete all of those, and then reload the page. To where they will have to re-login and then it will work and proceed to the checkout page.

Any idea what could cause this kind of issue??

Our Magento 2 settings are:

** URL Options: **
Add Store Code to URLs: No
Auto-Redirect to Base URL: Yes (302 Found)

** SEO **
Use Web Server Rewrites: Yes

** Base URLs **
Base URL: https://example.com/marketplace/
Base Link URL: https://example.com/marketplace/

** Base URLs (secure) **
Secure Base URL: https://example.com/marketplace/
Secure Base Link URL: https://example.com/marketplace/
Use Secure URLs on Storefront: Yes
Use Secure URLs in Admin: Yes
Enable HTTP Strict Transport Security (HSTS): No
Upgrade Insecure Requests: No
Offloader header: SSL_OFFLOADED

** Default Cookie Settings **
Cookie Lifetime: 36000
Cookie Path:
Cookie Domain:
Use HTTP Only: Yes
Cookie Restriction Mode: No

We use Cloudflare for our CDN, the cache settings being:

Caching Level: No Query String
Browser Cache Expiration: 1 Day
Always Online: On

As our store is in a subdirectory, we also use this in our main .htaccess to direct to /marketplace/ as our main domain:

RewriteCond %{REQUEST_URI} !/(downloads|emails|marketplace)/ [NC]
RewriteRule ^(.*)$ /marketplace/$1 [R=301,L]

example.com/marketplace/ is the website in this instance.

Does any of this look amiss, to where it could cause these cache issues? Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.