Empty all cache except subdir

Hi,

I’m looking for solutions to the following problem:

I have an url:
https://www.mysite.com

I also have a subdir called:
https://www.mysite.com/subdir/

What would the best way be to clear all cache on the domain except the subdir (containing some media files), which I never want to clear?

My ideas so far is to:

  1. Host the subdir on a different domain, e.g. mysubdir.com, and then be able to call “Purge All Files” on the main domain.
  2. Create a list of other urls and files, and use “Purge Files by URL”.

I’m not upgrading to Enterprise because it’s too expensive (currently on business). I know “hosts” would be a solution there.

My hope is that there is an alternative by using routes or workers that would be less cumbersome.