@tsteur opened this Pull Request on January 18th 2019 Member

Not sure if this will work across apache versions? Tested on Apache 2.2

Prevents preview files from being cached in the browser and that always the newest version will be served. Otherwise the user will need to use ctrl+r or something to reload a page that includes a preview file to make sure the cache is ignored and many users would not know that.

refs https://github.com/matomo-org/tag-manager/pull/150
for Nginx see https://github.com/matomo-org/matomo-nginx/issues/48

@diosmosis commented on January 21st 2019 Member

Tested locally, it works on apache 2.4, however I had one problem. If mod_headers isn't enabled, apache will just issue 500 errors (for everything in the folder, not just preview JS files).

@tsteur commented on January 21st 2019 Member

can you check if that works?

@diosmosis commented on January 21st 2019 Member

👍 works

This Pull Request was closed on January 21st 2019
Powered by GitHub Issue Mirror