Closed pfefferle closed 1 year ago
Maybe we can add a check in the .htaccess
like that:
<If "(%{HTTP_ACCEPT} -strmatch '*text/html*')">
Rewrite
</If>
Tried to test that quickly but had a setup issue with cachify :D Wanted to post that here so I do not forget that.
Describe the bug If a page has different views based on the Accept header, Cachify caches the output of the first request. If the request is
application/json
for example, Cachify always returns the JSON output on every following request.To Reproduce Steps to reproduce the behavior:
application/activity+json
Expected behavior Only cache requests with
html
Accept headers (https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation/List_of_default_Accept_values) and return the dynamic/uncached content otherwise.