Page Rule for specific collection of files

Hi !

I tried to search for similar topic but could not find any solution.
Also I do not know which category this topic should be hence I made it in “General”.

Here’s my question : How to make a Page Rule for specific collection of files ?

I have this 2 page rules :

  1. *example.com/*.php*
    Cache Level: Bypass
  2. *example.com/*
    Cache Level: Cache Everything

I want the #1 rule to have something like :
*example.com/*.(php|html|js|css)*
because this files {php, html, js, css} are dynamically generated.

Is there a way to do this ???

Thanking you , Best regards :+1:

Sorry, you can’t add logic or regex to Page Rules. Those would need to be separate page rules.

1 Like

Thanks :smile:

1 Like

This topic was automatically closed after 14 days. New replies are no longer allowed.