X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=page.sh;h=def728041a6cd837d2d443bcc9ae53a8e72c0088;hp=94d864da2c2f014604add8588bf6bd54e20a0124;hb=1a1d111199b770c092e1b16a7e03568d3d911b79;hpb=456423f02f12ac71d2d14e1abf959dafdc5eb041 diff --git a/page.sh b/page.sh index 94d864d..def7280 100755 --- a/page.sh +++ b/page.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU Affero General Public License # along with shcgi. If not, see . -printf "Content-Type: text/html;charset=utf-8\n\n" +. "${_EXEC}/shcgi/forms.sh" [ -z "$NAVIGATION" ] \ && NAVIGATION=($(printf %s\\n "${_EXEC}"/pages/*.sh |sed -r 's;^.*/([^/]*)\.sh$;\1;')) @@ -26,4 +26,8 @@ CSS="${CSS:-${_EXEC}/templates/${PAGE}.css.sh}" BODY="${BODY:-${_EXEC}/templates/${PAGE}.html.sh}" . "${_EXEC}/pages/${PAGE}.sh" + +# prevent browsers from caching generated pages +printf "Cache-Control: no-cache, no-store, must-revalidate\r\nPragma: no-cache\r\nExpires: 0\r\n" +printf "Content-Type: text/html;charset=utf-8\r\n\r\n" . "${_EXEC}/templates/frame.html.sh"