Skip to content

Varnish Cache Refresh Triggering HTML Requests Instead of JSON (HTTP 406) #146

@qguillou-niji

Description

@qguillou-niji

I'm using this bundle on my Sulu project, which has a Varnish cache configured.

When a page is modified, the cache invalidation is performed automatically, but I also see a cache refresh being performed on the current page and its child pages via GET requests on the page URLs.
These GET calls are made without the ".json" suffix at the end of the URL, so Sulu tries to respond with the HTML format, which is not supported by my Sulu project. This results in an HTTP 406 error response, which in turn leads to error logs.

Nothing impactful, everything seems to work correctly, but I'm wondering if there's a configuration that could address this error? (Prevent cache refresh, make the call in JSON format, or other options).

Thank you in advance for your feedback.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions