freelawproject / bigcases2

The sequel to Big Cases Bot
Other
18 stars 11 forks source link

fix(auth): Set cache control header in authenticated pages #610

Closed ERosendo closed 2 months ago

ERosendo commented 2 months ago

This commit fixes #599 by setting the cache control header to all views that require a logged-in user (using the never_cache() decorator), ensuring that the content is not cached by browsers and is always fetched from the server.

mlissner commented 2 months ago

Nice one, thanks. Are we fixing this on CL too?

ERosendo commented 2 months ago

Are we fixing this on CL too?

@mlissner CL is not experiencing this caching problem. Most authenticated views are already using the never_cache decorator.