mirror of
https://github.com/PirateBox-Dev/PirateBoxScripts_Webserver.git
synced 2026-12-06 17:28:07 +00:00
Fixed accidental redirects
Sometimes a user would still be redirected to a cached piratebox.lan site after disconnecting from the piratebox wifi. This has something to do with how different browsers interact with the cache-control meta tag. Adding "pragma" and "expires" tags as well as additional "cache-control" contents fixes that.
This commit is contained in:
1 parent
407f40f9e7
commit
d9fa73bbd5
1 file changed
+3
-1
@@ -1,7 +1,9 @@
|
||||
<html>
|
||||
<head><title>Redirect...</title>
|
||||
<meta http-equiv="refresh" content="0;url=http://piratebox.lan/" />
|
||||
<meta http-equiv='cache-control' content='no-cache'>
|
||||
<meta http-equiv='cache-control' content='no-cache, no-store, must-revalidate' />
|
||||
<meta http-equiv='pragma' content='no-cache' />
|
||||
<meta http-equiv='expires' content='0' />
|
||||
</head>
|
||||
<body>
|
||||
Redirect
|
||||
|
||||
Reference in new issue
Block a user