Skip to content

Missing Vary Header #318

@guilhermesimoes

Description

@guilhermesimoes

This bug occurs in Chrome and IE only but apparently it is a problem on Rails' end.

You can reproduce it by simply going to this page (https://secret-journey-4942.herokuapp.com/) and following the 3 steps indicated.

After hitting the back button, the browser will render the javascript returned by XHR to render the page instead of the actual page.

Here's the repository of the site that displays the bug.

This is fixed server-side by sending a Vary header, like so:

response.headers['Vary'] = 'Accept'

Metadata

Metadata

Assignees

No one assigned

    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