5b4f7f9ae9
We initially did that to avoid a browser being restarted to display a cached form with a stale CSRF token – thus provoking an InvalidAuthenticityToken exception when the form is submitted. But now that we use a long-lived CSRF token, we can submit forms with a stale CSRF token successfully (because the long-lived CSRF cookie) is still valid – so we no longer need to change the HTML cache behavior. This fixes issues where the browser Back button wants to display a previous POST document, but can't because of the 'no-store' setting. In this case the browser either displays an error, or re-attempts the POST request (without any cookies), which results in an InvalidAuthenticityToken exception. See `docs/adr-csrf-forgery.md` for more explanations. |
||
---|---|---|
.. | ||
environments | ||
initializers | ||
locales | ||
webpack | ||
application.rb | ||
boot.rb | ||
brakeman.ignore | ||
cable.yml | ||
database.yml | ||
deploy.rb | ||
env.example | ||
env.example.optional | ||
environment.rb | ||
i18n-tasks.yml | ||
puma.rb | ||
routes.rb | ||
secrets.yml | ||
skylight.yml | ||
spring.rb | ||
storage.yml | ||
webpacker.yml |