Wordpress with which my site is built organizes by default the folder uploads/year/month
to insert images
I would like to exclude images from the cloudflare cache and I have inserted this rule
www.example.com/wp-content/uploads/2*/*
Always online
Is it correct?
Thanks in advance
Best regards
Giuseppe
sandro
October 24, 2019, 6:23am
#2
That depends on your setup. Where do you cache the files? In a page rule?
Post a screenshot of your page rules and of your “Caching” screen.
Assuming you use the default settings and want to cover all hosts (not just “www”) you best use the following path with a “Bypass cache” rule
*example.com/wp-content/uploads/2*
Cache storage is done by the w3 total cache plugin.
This is a screenshot
Thanks
Regards
Giuseppe
I’m sorry but I don’t understand, apart from that I’m Italian and I don’t speak English well, what do you mean by screenshot of page rules and screenshot Caching?
sandro
October 24, 2019, 8:29am
#6
I just want to know if the rule
*example.com/wp-content/uploads/2*
Always online
is valid for disabling cache on cloudflare
Every image I have comes out of my server with this path example.com/wp-content/uploads/2019/10/image.jpg now because we are in October and the year 2019
Thanks
sandro
October 24, 2019, 9:27am
#9
No, it is not. Please see the rule I posted earlier, which should do exactly what you want.
As you can see I do not have the rule Bypass cache
What do I have to put among the ones I have available?
Thanks
Thank you very much
I appreciate your help.
I’m grateful.
I’m sorry, but I’m a newbie.
system
closed
November 7, 2019, 2:58pm
#13
This topic was automatically closed after 14 days. New replies are no longer allowed.