The best way to Wildcat all images using cloudflare

Posted on

The best way to Wildcat all images using cloudflare

Interior your resources catalog organizer or any other registry that you just use to store pictures, like (wp-content/uploads), you’ll be displayed with pictures that seem have distinctive formats like jpg, png, and svg.

The way they were named may be a great thing since it makes a difference us Wildcat all of them employing a single line of command. The correct way to wildcard only jpg and png (jpg and png both ends with g) so for example to catch both from image assets folder directory, we would use:

sopriza.com/assets/*.*g

Or split in two Page Rules (if possible) to catch both “jpg” and “png” in “assets” along with “avatars”:

sopriza.com/assets/*.jpg
sopriza.com/assets/*.png

You can then proceed with caching..

Was this helpful?

Thanks for your feedback!