From a950cc60d9400c553b853f3a3308edaa8ea645cc Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 19 Feb 2025 16:00:53 +0200 Subject: tidy trailing slash everywhere & fix tests --- core/middleware.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/middleware.py') diff --git a/core/middleware.py b/core/middleware.py index 2b280a1..fe68fb2 100644 --- a/core/middleware.py +++ b/core/middleware.py @@ -36,6 +36,12 @@ class TroggleAppendSlashMiddleware(MiddlewareMixin): do NOT include troggle.core.middleware.TroggleAppendSlashMiddleware in settings.py + + FURTHER WARNING + If playing about with this, the 301 redirects that it creates will be cached INDEFINITELY by any browser you + used to test it, e.g. /css/main.css with be permanetly redirected to /css/main2.css/ with dreadful + consequences, similarly for any images visited. You have to go into your browser settings and delete all cached + files to recover from this. """ def process_request(self, request): -- cgit v1.2.3