Set up rules


#1

How do I set up a rule to insert all files with a .doc extension, for example, into any folder in the domain?


#2

I am sorry but that question doesnt make much sense. You dont insert anything into any directory with Cloudflare.

Can you provide a few examples of what you want to achieve?


#3

Taking a shot in the dark here but are you thinking of something like Microsoft Flow?
https://flow.microsoft.com/en-us/


#4

It would be page rule, example. www.mydomain.com/*.doc that covers all subfolders www.mydomain.com/documents/doc1.doc, www.mydomain.com/doc/doc2.doc, and so on.


#5

And what is the problem in setting up that page rule?


#6

I wonder if this rule mydomain.com/.doc will cover all subfolders that have files with .doc extension. Or if I have to create a rule also for each subfolder, such as: www.mydomain.com/documents/.doc.


#7

It should. Havent you tried that? Ten days is a long time to try out something like this :smile:


#8

How do I see that it is working? Is there any option on the panel? I was disappointed by the response time, had not seen that you had answered :slight_smile:


#9

You set it up and test it. I’d suggest you do it right away so we can debug it live here on the forum. Also, post a screenshot of the page rule.

The reponse time was actually not bad, only nine minutes :wink:


#10

I created 2 links www.zoetropic.com.br/test/teste.docx and www.zoetropic.com.br/test2/teste2.docx


#12

Do you have a particular reason for that page rule? DOCX files are cached by default

The files are run through the cache in your case, however there is always a cache miss. Do you have any other page rules set up?


#13

Yes, for mp4 files. www.zoetropic.com.br/*.mp4, will this rule apply to subdirectories? Thank you.


#15

Yes, that rule should include sub-directories as well.

Can you post a screenshot of your page rules and cache settings? Unless you have some rule which bypasses everything you shouldnt need the “cache everything” rule as these files are cached by default.


closed #16

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