Skip to content

Commit

Permalink
Added cache meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jan 3, 2022
1 parent 7542622 commit 01c22cf
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 6 deletions.
17 changes: 17 additions & 0 deletions View/GrouperGroups/base.ctp
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?php
echo $this->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)
);
?>
<?php
print $this->element('GrouperLite.base-styles');
print $this->Html->css('GrouperLite.co-grouper-plugin') . "\n ";
?>
Expand Down
4 changes: 3 additions & 1 deletion View/GrouperGroups/groupinfo.ctp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--nocache-->
<?php $this->extend('/GrouperGroups/base'); ?>
<?php $this->Html->addCrumb(_txt('pl.grouperlite.title.groupinfo')); ?>
<?php
Expand All @@ -13,7 +14,7 @@ $attrUrlBase = $baseUrl . $path . $attrOperation;
<div class="border-bottom py-4 mb-4 d-flex justify-content-between">
<h2><strong><?php echo _txt('pl.grouperlite.group.info.page-heading'); ?></strong> <?php echo $groupergroupsdetail['friendlyName']; ?></h2>
<div class="d-flex align-items-center">

</div>
</div>
<div class="row">
Expand Down Expand Up @@ -42,3 +43,4 @@ $attrUrlBase = $baseUrl . $path . $attrOperation;
</div>
</div>
</div>
<!--/nocache-->
4 changes: 3 additions & 1 deletion View/GrouperGroups/groupmember.ctp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--nocache-->
<?php $this->extend('/GrouperGroups/base'); ?>
<?php $this->Html->addCrumb(_txt('pl.grouperlite.nav.memberships')); ?>
<?php echo $this->element('GrouperLite.Components/navigation-groups', array('active' => 'groupmember')); ?>
Expand Down Expand Up @@ -175,4 +176,5 @@ $collapsed = $config['defaultCollapse'] === 'collapsed' ? true : false;
</div>
<?php endif; ?>

<?php echo $this->element('Components/subscriberList'); ?>
<?php echo $this->element('Components/subscriberList'); ?>
<!--/nocache-->
4 changes: 3 additions & 1 deletion View/GrouperGroups/groupoptin.ctp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--nocache-->
<?php $this->extend('/GrouperGroups/base'); ?>
<?php $this->Html->addCrumb(_txt('pl.grouperlite.nav.groups-can-join')); ?>
<?php echo $this->element('GrouperLite.Components/navigation-groups', array('active' => 'groupoptin')); ?>
Expand Down Expand Up @@ -111,4 +112,5 @@ $collapsed = $config['defaultCollapse'] === 'collapsed' ? true : false;
<div class="alert alert-info">
<p class="lead mb-0 text-center"><?php echo _txt('pl.grouperlite.groups.zero-state'); ?></p>
</div>
<?php endif; ?>
<?php endif; ?>
<!--/nocache-->
6 changes: 3 additions & 3 deletions View/GrouperGroups/groupowner.ctp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--nocache-->
<?php $this->extend('/GrouperGroups/base'); ?>
<?php $this->Html->addCrumb(_txt('pl.grouperlite.nav.groups-presided')); ?>
<?php echo $this->element('Components/navigation-groups', array('active' => 'groupowner')); ?>
Expand Down Expand Up @@ -189,6 +190,5 @@ $collapsed = $config['defaultCollapse'] === 'collapsed' ? true : false;
<p class="lead mb-0 text-center"><?php echo _txt('pl.grouperlite.groups.zero-state'); ?></p>
</div>
<?php endif; ?>


<?php echo $this->element('Components/subscriberList'); ?>
<?php echo $this->element('Components/subscriberList'); ?>
<!--/nocache-->

0 comments on commit 01c22cf

Please sign in to comment.