i have django website activated translations (django.middleware.locale.localemiddleware),
i requests non-existing page:
django responds with:
http/1.1 302 found date: fri, 02 sep 2016 09:15:45 gmt server: apache/2.4.7 (ubuntu) vary: cookie,host location: https://example.com/de/nonexisting content-type: text/html; charset=utf-8 http/1.1 301 moved permanently date: fri, 02 sep 2016 09:15:45 gmt server: apache/2.4.7 (ubuntu) vary: cookie,host x-frame-options: sameorigin content-language: de set-cookie: django_language=de; expires=sat, 02-sep-2017 09:15:45 gmt; max-age=31536000; path=/ location: https://example.com/de/nonexisting/ content-type: text/html; charset=utf-8 http/1.1 404 not found date: fri, 02 sep 2016 09:15:45 gmt server: apache/2.4.7 (ubuntu) vary: cookie,host x-frame-options: sameorigin content-language: de set-cookie: django_language=de; expires=sat, 02-sep-2017 09:15:45 gmt; max-age=31536000; path=/ content-type: text/html; charset=utf-8
the user receives in order: 302,301,404
how can achieve user directly gets 404?
Comments
Post a Comment