my store account page will not work. redirect loop.
I have my store gamerpackage.com but the top right icon where my account page is after login won’t work. I have cache everything but then I have rules that exclude it from caching. For some reason it still doesn’t exclude it. Please help
3 Replies
You really don't want cache everything on a website like that, super dynamic on every page. CF by default has sane cache options for static resources (css/js/images/etc). Looks like you may have undone that rule, are you still having the issue?
hey thanks so much for the reply. As of right now i had to turn it off to make sure my customers can use the site. I thought i had it set up good but idk why it wasnt working. I had this as my bypass cache rules (http.request.uri.path eq "/wp-admin") or (http.request.uri.path contains "/wp-login.php") or (http.request.uri.path eq "/cart") or (http.request.uri.path eq "/checkout") or (http.request.uri.path contains "/my-account") or (http.request.uri.path contains "/wp-admin/*") or (http.request.uri.path contains "/cart/") or (http.request.uri.path contains "/checkout/")
this was my store cookies bypass (http.cookie contains "_wcsession") or (http.cookie contains "woocommerce_cart_hash") or (http.cookie contains "woocommerce_items_in_cart") or (http.cookie contains "wp_woocommercesession") or (http.cookie eq "woocommerce_recently_viewed") or (http.cookie eq "store_notice[notice id]")
then i had the cache everything. Do you know why it wouldnt work or what are better methods for my site?
Discord's formatting is messing up your message but it looks like you tried to use wildcards
*
in a few parts. Wildcards aren't supported in contains or equals
Your site is highly dynamic and Cloudflare's default caching https://developers.cloudflare.com/cache/concepts/default-cache-behavior/ caches css/js/images/etc like mentioned above. You've already got most of your assets being cached with long cache ttls. You could try to cache for users without anything in their cart but it looks like there's other parts of your site setting cookies/being dynamic other then that sbjs
cookies like "sbjs_session"