diff --git a/config/apache/standardebooks.org.conf b/config/apache/standardebooks.org.conf index 55c4f56d..305b5bcd 100644 --- a/config/apache/standardebooks.org.conf +++ b/config/apache/standardebooks.org.conf @@ -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" diff --git a/config/apache/standardebooks.test.conf b/config/apache/standardebooks.test.conf index 7da3402b..f3d7d099 100644 --- a/config/apache/standardebooks.test.conf +++ b/config/apache/standardebooks.test.conf @@ -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" diff --git a/www/polls/get.php b/www/polls/get.php index 63f82378..151554f5 100644 --- a/www/polls/get.php +++ b/www/polls/get.php @@ -42,18 +42,18 @@ catch(Exceptions\SeException $ex){ if(!$canVote){ ?>
You’ve already voted in this poll.
} ?> - + }else{ ?> if($poll->Start !== null && $poll->Start > new DateTime()){ ?>This poll opens on = $poll->Start->format('F j, Y g:i a') ?>.
}else{ ?> -This poll closed on = $poll->End->format('F j, Y g:i a') ?>.
- +This poll closed on = $poll->End->format('F j, Y g:i a') ?>.
+ } ?> } ?>