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

Chrome aggressive caching weird interaction with Volto seamless mode #2505

Closed
tiberiuichim opened this issue Jun 7, 2021 · 2 comments
Closed

Comments

@tiberiuichim
Copy link
Contributor

There's a Chrome caching issue that behaves bad with SSR. To reproduce:

  • upload an image in Volto
  • navigate to the image. Click on the "Click to download full sized image"
  • click on the "Back" button of the browser

Now you'll get a JSON response page. This happens because the URLs match (HTML doc transfer and JSON transfer) and Chrome has a bug. This behavior can't be reproduced in Firefox.

Possible solutions:

  • open image in new tab (target=_blank)
  • change getContent action calls to add some query parameter to make the URLs different
@tiberiuichim
Copy link
Contributor Author

Note that this is not restricted to images (at least I don't think so), but to any outside URL that you could back from

@avoinea avoinea removed their assignment Jun 8, 2021
@sneridagh
Copy link
Member

Fixed in refactored seamless mode in Volto 14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants