summaryrefslogtreecommitdiffstats
path: root/core/middleware.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2025-02-19 16:00:53 +0200
committerPhilip Sargent <philip.sargent@gmail.com>2025-02-19 16:00:53 +0200
commita950cc60d9400c553b853f3a3308edaa8ea645cc (patch)
tree2d9ba95d09d74355fc329b4e3bd093ea4ac30de8 /core/middleware.py
parentcc06e2e1f4bdfbf354d79055595980a1bdef495c (diff)
downloadtroggle-a950cc60d9400c553b853f3a3308edaa8ea645cc.tar.gz
troggle-a950cc60d9400c553b853f3a3308edaa8ea645cc.tar.bz2
troggle-a950cc60d9400c553b853f3a3308edaa8ea645cc.zip
tidy trailing slash everywhere & fix tests
Diffstat (limited to 'core/middleware.py')
-rw-r--r--core/middleware.py6
1 files changed, 6 insertions, 0 deletions
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):