From 01c22cff09ab8a2b243f855a254be530e7d88e6d Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Mon, 3 Jan 2022 14:49:56 -0700 Subject: [PATCH] Added cache meta tags --- View/GrouperGroups/base.ctp | 17 +++++++++++++++++ View/GrouperGroups/groupinfo.ctp | 4 +++- View/GrouperGroups/groupmember.ctp | 4 +++- View/GrouperGroups/groupoptin.ctp | 4 +++- View/GrouperGroups/groupowner.ctp | 6 +++--- 5 files changed, 29 insertions(+), 6 deletions(-) diff --git a/View/GrouperGroups/base.ctp b/View/GrouperGroups/base.ctp index b908373..c470d70 100644 --- a/View/GrouperGroups/base.ctp +++ b/View/GrouperGroups/base.ctp @@ -1,4 +1,21 @@ Html->meta( + array('http-equiv' => 'Cache-Control', 'content' => 'no-cache, no-store, must-revalidate'), + null, + array('inline' => false) +); +echo $this->Html->meta( + array('http-equiv' => 'Pragma', 'content' => 'no-cache'), + null, + array('inline' => false) +); +echo $this->Html->meta( + array('http-equiv' => 'Expires', 'content' => '0'), + null, + array('inline' => false) +); +?> +element('GrouperLite.base-styles'); print $this->Html->css('GrouperLite.co-grouper-plugin') . "\n "; ?> diff --git a/View/GrouperGroups/groupinfo.ctp b/View/GrouperGroups/groupinfo.ctp index 1fd387b..07907f5 100644 --- a/View/GrouperGroups/groupinfo.ctp +++ b/View/GrouperGroups/groupinfo.ctp @@ -1,3 +1,4 @@ + extend('/GrouperGroups/base'); ?> Html->addCrumb(_txt('pl.grouperlite.title.groupinfo')); ?>

- +
@@ -42,3 +43,4 @@ $attrUrlBase = $baseUrl . $path . $attrOperation;
+ \ No newline at end of file diff --git a/View/GrouperGroups/groupmember.ctp b/View/GrouperGroups/groupmember.ctp index 70c3d34..d06614f 100644 --- a/View/GrouperGroups/groupmember.ctp +++ b/View/GrouperGroups/groupmember.ctp @@ -1,3 +1,4 @@ + extend('/GrouperGroups/base'); ?> Html->addCrumb(_txt('pl.grouperlite.nav.memberships')); ?> element('GrouperLite.Components/navigation-groups', array('active' => 'groupmember')); ?> @@ -175,4 +176,5 @@ $collapsed = $config['defaultCollapse'] === 'collapsed' ? true : false; -element('Components/subscriberList'); ?> \ No newline at end of file +element('Components/subscriberList'); ?> + \ No newline at end of file diff --git a/View/GrouperGroups/groupoptin.ctp b/View/GrouperGroups/groupoptin.ctp index fb9f3bb..ce1c7ef 100644 --- a/View/GrouperGroups/groupoptin.ctp +++ b/View/GrouperGroups/groupoptin.ctp @@ -1,3 +1,4 @@ + extend('/GrouperGroups/base'); ?> Html->addCrumb(_txt('pl.grouperlite.nav.groups-can-join')); ?> element('GrouperLite.Components/navigation-groups', array('active' => 'groupoptin')); ?> @@ -111,4 +112,5 @@ $collapsed = $config['defaultCollapse'] === 'collapsed' ? true : false;

- \ No newline at end of file + + \ No newline at end of file diff --git a/View/GrouperGroups/groupowner.ctp b/View/GrouperGroups/groupowner.ctp index 3ba78bb..a240d3b 100644 --- a/View/GrouperGroups/groupowner.ctp +++ b/View/GrouperGroups/groupowner.ctp @@ -1,3 +1,4 @@ + extend('/GrouperGroups/base'); ?> Html->addCrumb(_txt('pl.grouperlite.nav.groups-presided')); ?> element('Components/navigation-groups', array('active' => 'groupowner')); ?> @@ -189,6 +190,5 @@ $collapsed = $config['defaultCollapse'] === 'collapsed' ? true : false;

- - -element('Components/subscriberList'); ?> \ No newline at end of file +element('Components/subscriberList'); ?> + \ No newline at end of file