Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Prevent caching CP responses #9288

Closed
wants to merge 1 commit into from
Closed

[4.x] Prevent caching CP responses #9288

wants to merge 1 commit into from

Conversation

jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Jan 9, 2024

Closes #4814

This disables caching of control panel responses, which can become problematic when using the back/forward browser buttons.

For example:

  1. Open the edit entry form.
  2. Click the twirldown and choose "Edit blueprint".
  3. Make a change to a field, like replacing a markdown field with a textarea.
  4. Click the browser's back button.

Before this PR, the entry edit form would have been cached, and you'd see the form with the unchanged field.

After this PR, the form would not be cached, and it would be reloaded, so you'd see the form in the new (expected) state.

@jasonvarga jasonvarga closed this Jan 10, 2024
@jasonvarga jasonvarga deleted the no-store-header branch January 10, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Back/forward cache loads old blueprints/contents when navigating CP in Browser
1 participant