I developed a product download portal for customers with Kirby 2. The portal hosts private files for each customer, and downloading these files should not be possible via public URL (download is initiated with PHP instead).
The product files reside in the content-folder to allow easy manipulation via panel. I’ve restricted access to these files via .htaccess. The path of each file looks like this:
When migrating to Kirby 3, I noticed that after downloading a product file, the file gets copied to the media directory.
Is it possible to disable caching of these files to media directory? Motivations:
- The product files can be very large. Duplication to media folder unnecessarily fill-ups the web host disk quota
- Although the files are not in “plain sight”, they are still downloadable via a public URL in media folder. The project has high security requirements, and these kind of things cannot be overlooked