mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 04:44:48 -04:00
Add text/javascript to apache cache policy
This commit is contained in:
parent
5773a67c42
commit
d8f85fa4b3
3 changed files with 10 additions and 8 deletions
|
@ -19,6 +19,7 @@ Protocols h2 h2c http/1.1
|
|||
# Set up caching directives for infrequently changed files
|
||||
ExpiresActive on
|
||||
ExpiresByType application/javascript "access plus 6 months"
|
||||
ExpiresByType text/javascript "access plus 6 months"
|
||||
ExpiresByType font/woff2 "access plus 6 months"
|
||||
ExpiresByType image/avif "access plus 6 months"
|
||||
ExpiresByType image/gif "access plus 6 months"
|
||||
|
|
|
@ -19,6 +19,7 @@ Protocols h2 h2c http/1.1
|
|||
# Set up caching directives for infrequently changed files
|
||||
ExpiresActive on
|
||||
ExpiresByType application/javascript "access plus 6 months"
|
||||
ExpiresByType text/javascript "access plus 6 months"
|
||||
ExpiresByType font/woff2 "access plus 6 months"
|
||||
ExpiresByType image/avif "access plus 6 months"
|
||||
ExpiresByType image/gif "access plus 6 months"
|
||||
|
|
|
@ -42,18 +42,18 @@ catch(Exceptions\SeException $ex){
|
|||
<? if(!$canVote){ ?>
|
||||
<p class="center-notice">You’ve already voted in this poll.</p>
|
||||
<? } ?>
|
||||
<p class="button-row narrow">
|
||||
<? if($canVote){ ?>
|
||||
<a href="<?= $poll->Url ?>/votes/new" class="button">Vote now</a>
|
||||
<? } ?>
|
||||
<a href="<?= $poll->Url ?>/votes" class="button">View results</a>
|
||||
</p>
|
||||
<p class="button-row narrow">
|
||||
<? if($canVote){ ?>
|
||||
<a href="<?= $poll->Url ?>/votes/new" class="button">Vote now</a>
|
||||
<? } ?>
|
||||
<a href="<?= $poll->Url ?>/votes" class="button">View results</a>
|
||||
</p>
|
||||
<? }else{ ?>
|
||||
<? if($poll->Start !== null && $poll->Start > new DateTime()){ ?>
|
||||
<p class="center-notice">This poll opens on <?= $poll->Start->format('F j, Y g:i a') ?>.</p>
|
||||
<? }else{ ?>
|
||||
<p class="center-notice">This poll closed on <?= $poll->End->format('F j, Y g:i a') ?>.</p>
|
||||
<p class="button-row narrow"><a href="<?= $poll->Url ?>/votes" class="button">View results</a></p>
|
||||
<p class="center-notice">This poll closed on <?= $poll->End->format('F j, Y g:i a') ?>.</p>
|
||||
<p class="button-row narrow"><a href="<?= $poll->Url ?>/votes" class="button">View results</a></p>
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue