luci-base: extend Expires directive to prevent caching
authorAndre Heider <a.heider@gmail.com>
Tue, 12 Sep 2023 18:09:53 +0000 (20:09 +0200)
committerPaul Donald <itsascambutmailmeanyway@gmail.com>
Sat, 17 Feb 2024 17:03:31 +0000 (18:03 +0100)
Some browsers apparently act on fixed dates only, so add that too.
Tested on firefox.

Signed-off-by: Andre Heider <a.heider@gmail.com>
modules/luci-base/root/www/index.html

index d5f7d7209f234d14bc4f33a57ec29e21bf3cb19a..398e6e763c850256deeec2d83fa71002e7b0c3cd 100644 (file)
@@ -4,7 +4,8 @@
        <head>
                <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" />
+               <meta http-equiv="Expires" content="0" />
+               <meta http-equiv="Expires" content="Thu, 01 Jan 1970 00:00:00 GMT" />
                <meta http-equiv="refresh" content="0; URL=cgi-bin/luci/" />
                <style type="text/css">
                        body { background: white; font-family: arial, helvetica, sans-serif; }