demarches-normaliennes/config
Pierre de La Morinerie 5b4f7f9ae9 app: restore the default cache settings
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.
2021-07-20 11:11:52 +02:00
..
environments Use explicit name to avoid unknown constant errors 2021-05-06 16:10:48 +02:00
initializers config: report job exceptions after max retry count reached 2021-07-01 15:06:14 +02:00
locales Improuve revision changes messages 2021-06-24 11:39:49 +02:00
webpack Another attempt at fixing IE 2021-03-09 11:29:20 +01:00
application.rb app: restore the default cache settings 2021-07-20 11:11:52 +02:00
boot.rb app: enable Bootsnap 2021-03-19 08:05:14 +01:00
brakeman.ignore Add last_month export 2021-06-23 09:23:10 +02:00
cable.yml app: update code to Rails 6.1 2021-03-25 13:24:53 +01:00
database.yml config: fix spring randomly crashing in the pg gem 2020-05-25 09:23:41 +00:00
deploy.rb add webserver file logic 2021-03-29 18:45:40 +02:00
env.example ci: check for zeitwerk errors 2021-04-15 13:17:46 +02:00
env.example.optional use env for localization to avoid db round trip 2021-04-06 18:23:14 +02:00
environment.rb app: update code to Rails 6.1 2021-03-25 13:24:53 +01:00
i18n-tasks.yml unused locales clean-up 2021-02-04 12:15:13 +01:00
puma.rb app: update code to Rails 6.1 2021-03-25 13:24:53 +01:00
routes.rb routes: replace the email param in the Avis URLs by a query param 2021-06-17 11:15:51 +02:00
secrets.yml Fix (Sentry): prefer Rails secrets over ENV variables 2021-05-27 11:12:27 +02:00
skylight.yml [ENV] Add skylight conf 2018-08-23 15:55:31 +02:00
spring.rb Rails app:update 2020-07-07 18:03:56 +02:00
storage.yml fix catalog v3 2020-06-19 14:20:32 +02:00
webpacker.yml Use jsx extension 2021-02-16 18:14:10 +01:00