Skip to content

Sending Vary header for AJAX requests. #1133

@hrach

Description

@hrach
  • Browsers cache the content.
  • The cache key is based on URL and other headers defined in Vary header
  • Nette send different content for the same URL, detection is done by XHttpRequestWith header.

We must add Vary header, which tells the browser that the cache should depend on XHttpRequestWith header.

vojtech-dobes/nette.ajax.js@07f03cc

Related bug in Firefox (months ago fixed): https://bugzilla.mozilla.org/show_bug.cgi?id=633743

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions