Not Cache the WebUI

Submitted by Christian Dresel on May 15, 2016, 7:27 p.m.

Details

Message ID 1463340441-20018-1-git-send-email-fff@chrisi01.de
State Accepted, archived
Commit 07fa061065d22e6af578633419f68e2075e6fe34
Headers show

Commit Message

Christian Dresel May 15, 2016, 7:27 p.m.
Signed-off-by: Christian Dresel <fff@chrisi01.de>
---
 src/packages/fff/fff-web/files/www/public/cgi-bin/status.html | 3 +++
 src/packages/fff/fff-web/files/www/ssl/cgi-bin/header         | 3 +++
 2 files changed, 6 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/packages/fff/fff-web/files/www/public/cgi-bin/status.html b/src/packages/fff/fff-web/files/www/public/cgi-bin/status.html
index fcb047e..afd3b89 100755
--- a/src/packages/fff/fff-web/files/www/public/cgi-bin/status.html
+++ b/src/packages/fff/fff-web/files/www/public/cgi-bin/status.html
@@ -17,6 +17,9 @@  contact="$(uci get -q system.@system[0].contact)"
 	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
 	<title><%= ${HOSTNAME} %></title>
 	<link href="/style.css" rel="stylesheet" type="text/css" media="screen" />
+	<meta http-equiv="cache-control" content="no-cache">
+	<meta http-equiv="pragma" content="no-cache">
+	<meta http-equiv="expires" content="0">
 </head>
 <body>
 	<div id="header" style="position: relative;">
diff --git a/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header b/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header
index 2393ec7..9cb8eec 100755
--- a/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header
+++ b/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header
@@ -18,6 +18,9 @@  HOSTNAME=$(uci get -q 'system.@system[0].hostname')
 	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
 	<title><%= ${HOSTNAME} %></title>
 	<link href="/style.css" rel="stylesheet" type="text/css" media="screen" />
+       <meta http-equiv="cache-control" content="no-cache">
+       <meta http-equiv="pragma" content="no-cache">
+       <meta http-equiv="expires" content="0">
 </head>
 <body>
 	<div id="header" style="position: relative;">

Comments

Jan Kraus May 15, 2016, 7:31 p.m.
Hi,
sieht gut aus.

Reviewed-by: Jan Kraus <mayosemmel@gmail.com>


Am Sonntag, den 15.05.2016, 21:27 +0200 schrieb Christian Dresel:
> Signed-off-by: Christian Dresel <fff@chrisi01.de>
> ---
>  src/packages/fff/fff-web/files/www/public/cgi-bin/status.html | 3 +++
>  src/packages/fff/fff-web/files/www/ssl/cgi-bin/header         | 3 +++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/src/packages/fff/fff-web/files/www/public/cgi-bin/status.html b/src/packages/fff/fff-web/files/www/public/cgi-bin/status.html
> index fcb047e..afd3b89 100755
> --- a/src/packages/fff/fff-web/files/www/public/cgi-bin/status.html
> +++ b/src/packages/fff/fff-web/files/www/public/cgi-bin/status.html
> @@ -17,6 +17,9 @@ contact="$(uci get -q system.@system[0].contact)"
>  	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
>  	<title><%= ${HOSTNAME} %></title>
>  	<link href="/style.css" rel="stylesheet" type="text/css" media="screen" />
> +	<meta http-equiv="cache-control" content="no-cache">
> +	<meta http-equiv="pragma" content="no-cache">
> +	<meta http-equiv="expires" content="0">
>  </head>
>  <body>
>  	<div id="header" style="position: relative;">
> diff --git a/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header b/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header
> index 2393ec7..9cb8eec 100755
> --- a/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header
> +++ b/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header
> @@ -18,6 +18,9 @@ HOSTNAME=$(uci get -q 'system.@system[0].hostname')
>  	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
>  	<title><%= ${HOSTNAME} %></title>
>  	<link href="/style.css" rel="stylesheet" type="text/css" media="screen" />
> +       <meta http-equiv="cache-control" content="no-cache">
> +       <meta http-equiv="pragma" content="no-cache">
> +       <meta http-equiv="expires" content="0">
>  </head>
>  <body>
>  	<div id="header" style="position: relative;">
> -- 
> 2.1.4
>
A. Schulze May 16, 2016, 9:11 a.m.
Moin,

> +	<meta http-equiv="cache-control" content="no-cache">
> +	<meta http-equiv="pragma" content="no-cache">
> +	<meta http-equiv="expires" content="0">

ich nutze auch dieses Dreigespann, allerdings mit
<meta http-equiv="expires" content="1">

das erschien mir nicht so "grenzwertig" und Inhalte für eine Sekunde cachen war (für mich, in der betreffenden Anwendung) auch OK.

Andreas
Tim Niemeyer May 16, 2016, 12:12 p.m.
Reviewed und applied.

Danke
Tim

Am Sonntag, den 15.05.2016, 21:27 +0200 schrieb Christian Dresel:
> Signed-off-by: Christian Dresel <fff@chrisi01.de>
> ---
>  src/packages/fff/fff-web/files/www/public/cgi-bin/status.html | 3 +++
>  src/packages/fff/fff-web/files/www/ssl/cgi-bin/header         | 3 +++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/src/packages/fff/fff-web/files/www/public/cgi-bin/status.html b/src/packages/fff/fff-web/files/www/public/cgi-bin/status.html
> index fcb047e..afd3b89 100755
> --- a/src/packages/fff/fff-web/files/www/public/cgi-bin/status.html
> +++ b/src/packages/fff/fff-web/files/www/public/cgi-bin/status.html
> @@ -17,6 +17,9 @@ contact="$(uci get -q system.@system[0].contact)"
>  	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
>  	<title><%= ${HOSTNAME} %></title>
>  	<link href="/style.css" rel="stylesheet" type="text/css" media="screen" />
> +	<meta http-equiv="cache-control" content="no-cache">
> +	<meta http-equiv="pragma" content="no-cache">
> +	<meta http-equiv="expires" content="0">
>  </head>
>  <body>
>  	<div id="header" style="position: relative;">
> diff --git a/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header b/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header
> index 2393ec7..9cb8eec 100755
> --- a/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header
> +++ b/src/packages/fff/fff-web/files/www/ssl/cgi-bin/header
> @@ -18,6 +18,9 @@ HOSTNAME=$(uci get -q 'system.@system[0].hostname')
>  	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
>  	<title><%= ${HOSTNAME} %></title>
>  	<link href="/style.css" rel="stylesheet" type="text/css" media="screen" />
> +       <meta http-equiv="cache-control" content="no-cache">
> +       <meta http-equiv="pragma" content="no-cache">
> +       <meta http-equiv="expires" content="0">
>  </head>
>  <body>
>  	<div id="header" style="position: relative;">
> -- 
> 2.1.4
>