demarches-normaliennes/config
Pierre de La Morinerie 968e470684 config: never cache rails-generated pages
This instruct browsers to never cache content directly generated by the
controllers. This includes HTML pages, JSON responses, PDF files, etc.

This is because Some mobile browsers have a behaviour where, although
they will delete the session cookie when the browser shutdowns, they
will still serve a cached version of the page on relaunch.

The CSRF token in the HTML is then mismatched with the CSRF token in the
session cookie (because the session cookie has been cleared). This
causes form submissions to fail with an
"ActionController::InvalidAuthenticityToken" exception.

To prevent this, tell browsers to never cache the HTML of a page.
(This doesn’t affect assets files, which are still sent with the proper
cache headers).

See https://github.com/rails/rails/issues/21948
2020-04-14 18:29:17 +02:00
..
environments Upgrade core-js 2020-02-24 19:43:07 +01:00
initializers Use graphql playground instead of graphiql 2020-04-09 19:38:19 +02:00
locales Notifie tous les instructeurs lors dépôt dossier 2020-04-09 14:33:56 +02:00
webpack Improve the mapbox-gl support detection for older browsers 2020-04-09 11:01:20 +02:00
application.rb config: never cache rails-generated pages 2020-04-14 18:29:17 +02:00
boot.rb Bump development gems 2018-03-06 16:17:22 +01:00
brakeman.ignore Add brakeman exception for a export.file.service_url 2019-12-18 13:13:15 +01:00
cable.yml Stop using staging environement 2018-08-29 11:22:56 +02:00
database.yml Setup a timeout on long query 2019-10-17 16:45:18 +02:00
deploy.rb Add base cron job 2020-03-31 12:25:46 +02:00
dossiers-with-lost-attachments.yml dossier: add a notice when some attachments of the dossier were lost 2020-02-12 11:49:33 +01:00
env.example Remove unused key 2020-02-10 13:59:15 +01:00
environment.rb Bump development gems 2018-03-06 16:17:22 +01:00
puma.rb Puma: change config to enable cluster mode in production 2019-03-18 11:40:13 +01:00
routes.rb Use graphql playground instead of graphiql 2020-04-09 19:38:19 +02:00
secrets.yml Remove unused key 2020-02-10 13:59:15 +01:00
skylight.yml [ENV] Add skylight conf 2018-08-23 15:55:31 +02:00
storage.yml Revert "Revert "Decommission ActiveStorage proxy service and use openstack service"" 2019-10-30 12:11:45 +01:00
webpacker.yml Update webpacker and replace vue with react 2019-04-03 14:38:07 +02:00