Page Rule: multiple extensions

Page Rule:*.jpg
Browser Cache TTL: 6 months
This rule works

Page Rule:*.(jpg|png|gif|js|css)
Browser Cache TTL: 6 months
This rule doesn’t work. Why?

How do I specify multiple extensions in a rule?

Sorry, Page Rules don’t support any type of logic such as regex. The best you can do is wildcards. Multiple extensions would require multiple rules.

But if it’s just the browser cache you want to set, you should be able to do that from your server. .htaccess will let you do this.

Ok, thank you.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.