]> git.plutz.net Git - cgilite/blobdiff - page.sh
stub support for multiline comments (e.g. css/js embedding)
[cgilite] / page.sh
diff --git a/page.sh b/page.sh
index f68df8e26b92445703aee85cbd83fe63ff3a82de..def728041a6cd837d2d443bcc9ae53a8e72c0088 100755 (executable)
--- a/page.sh
+++ b/page.sh
@@ -17,6 +17,8 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with shcgi.  If not, see <http://www.gnu.org/licenses/>. 
 
+. "${_EXEC}/shcgi/forms.sh"
+
 [ -z "$NAVIGATION" ] \
 && NAVIGATION=($(printf %s\\n "${_EXEC}"/pages/*.sh |sed -r 's;^.*/([^/]*)\.sh$;\1;'))
 
@@ -25,5 +27,7 @@ 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"