Apache caching of public links

Hi to everyone.

A simple question: Is there any way to apply a header cache-control to public links (those who ends with the download part, ex: index.php/s/[token]/download?

My files are media files and I would like to be cached for some time in the browser.
Now, those kind of links has the header:
Cache-Control: no-cache, no-store, must-revalidate, post-check=0, pre-check=0
So my browser always try to get the file from the owncloud server.

I have tried in Apache .htaccess but I didn’t get any result.
My directive is:

<LocationMatch “^/index.php/s/(.+)/download$”>
Header unset Cache-Control
Header always set Cache-Control max-age=600,public

Any idea how to solve this problem?
Thanks in advance.

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