fyiorgnz / alaveteli

OIA/LGOIMA (Freedom of Information) request system: New Zealand fork of mysociety/alaveteli
https://fyi.org.nz/
Other
4 stars 3 forks source link

Ensure correct codes/headers on errors to prevent caching #16

Open olineham opened 5 years ago

olineham commented 5 years ago

Ensure that an error response is not cachable by the browser.

Not sure if it's from nginx or rails but I've seen this myself where /admin returned the error page and reload doesn't fix it without holding ctrl to bypass cache. One user has also complained that they could no longer submit requests as they always get the error page - most likely caching.