Add text/javascript to apache cache policy

This commit is contained in:
Alex Cabal 2023-05-25 23:21:29 -05:00
parent 5773a67c42
commit d8f85fa4b3
3 changed files with 10 additions and 8 deletions

View file

@ -19,6 +19,7 @@ Protocols h2 h2c http/1.1
# Set up caching directives for infrequently changed files # Set up caching directives for infrequently changed files
ExpiresActive on ExpiresActive on
ExpiresByType application/javascript "access plus 6 months" ExpiresByType application/javascript "access plus 6 months"
ExpiresByType text/javascript "access plus 6 months"
ExpiresByType font/woff2 "access plus 6 months" ExpiresByType font/woff2 "access plus 6 months"
ExpiresByType image/avif "access plus 6 months" ExpiresByType image/avif "access plus 6 months"
ExpiresByType image/gif "access plus 6 months" ExpiresByType image/gif "access plus 6 months"

View file

@ -19,6 +19,7 @@ Protocols h2 h2c http/1.1
# Set up caching directives for infrequently changed files # Set up caching directives for infrequently changed files
ExpiresActive on ExpiresActive on
ExpiresByType application/javascript "access plus 6 months" ExpiresByType application/javascript "access plus 6 months"
ExpiresByType text/javascript "access plus 6 months"
ExpiresByType font/woff2 "access plus 6 months" ExpiresByType font/woff2 "access plus 6 months"
ExpiresByType image/avif "access plus 6 months" ExpiresByType image/avif "access plus 6 months"
ExpiresByType image/gif "access plus 6 months" ExpiresByType image/gif "access plus 6 months"

View file

@ -42,18 +42,18 @@ catch(Exceptions\SeException $ex){
<? if(!$canVote){ ?> <? if(!$canVote){ ?>
<p class="center-notice">Youve already voted in this poll.</p> <p class="center-notice">Youve already voted in this poll.</p>
<? } ?> <? } ?>
<p class="button-row narrow"> <p class="button-row narrow">
<? if($canVote){ ?> <? if($canVote){ ?>
<a href="<?= $poll->Url ?>/votes/new" class="button">Vote now</a> <a href="<?= $poll->Url ?>/votes/new" class="button">Vote now</a>
<? } ?> <? } ?>
<a href="<?= $poll->Url ?>/votes" class="button">View results</a> <a href="<?= $poll->Url ?>/votes" class="button">View results</a>
</p> </p>
<? }else{ ?> <? }else{ ?>
<? if($poll->Start !== null && $poll->Start > new DateTime()){ ?> <? 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> <p class="center-notice">This poll opens on <?= $poll->Start->format('F j, Y g:i a') ?>.</p>
<? }else{ ?> <? }else{ ?>
<p class="center-notice">This poll closed on <?= $poll->End->format('F j, Y g:i 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> <p class="button-row narrow"><a href="<?= $poll->Url ?>/votes" class="button">View results</a></p>
<? } ?> <? } ?>
<? } ?> <? } ?>
</section> </section>