Hello,
is there a possibility / workaround to exclude Woocommerce Cart and Checkout Page from Caching, with the Free CF Plan? I use already my 3 Page Rules for Excluding wp-admin / wp-login and Cache Everything Rule.
Found this Article:
You can use Workers to emulate Bypass Cache on Cookie, but Workers charges add up for high-traffic sites.
@eva2000 dug this up for me:
// Stop CF edge from caching your site when specific wordpress cookies are present
addEventListener('fetch', event => {
event.respondWith(noCacheOnCookie(event.request))
})
async function noCacheOnCookie(request) {
// Determine which group this request is in.
const cookie = request.headers.get('Cookie')
const cacheSeconds = 604800
if (cookie
&& …
This is my worker / route setup:
Worker Name: worker.domain.workers.dev
Additional Routes: domain.com/
DNS Settings:
Created A Record with name worker pointing to not existing IP 192.2.0.1 proxied
Testing under Workers Get Request to https://worker.domain.workers.dev/ results in Error 522 Origin Connection Time-out
Can someone please help me with the Ground Setup for the worker Script ?
Thx
Can someone give me a hint who has also Woocommerce and Cloudflare Free Plan?
Thx
Hi @sally1 , you may want to see if there is something close on Built With Workers, https://workers.cloudflare.com/built-with or ask in the #developers:workers forum to see if anyone is familiar with this use
Hello cloonan,
thanks for the Information.
sally1
June 6, 2020, 11:16am
8
(post withdrawn by author, will be automatically deleted in 1 hour unless flagged)
system
Closed
June 27, 2020, 2:08am
9
This topic was automatically closed after 31 days. New replies are no longer allowed.