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:
- Install the ActivityPub plugin
- Load the author page with Accept header
application/activity+json
- Load the author page again in the browser
- See the JSON output
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.
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/jsonfor example, Cachify always returns the JSON output on every following request.To Reproduce
Steps to reproduce the behavior:
application/activity+jsonExpected behavior
Only cache requests with
htmlAccept headers (https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation/List_of_default_Accept_values) and return the dynamic/uncached content otherwise.