Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/000-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<Directory /usr/local/elixir/static/>
AllowOverride None
Require all granted
Header set Cache-Control "max-age=3600"
</Directory>
<VirtualHost *:80>
ServerName MY_LOCAL_IP
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ RUN mkdir -p /srv/elixir-data/
COPY ./docker/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY ./docker/gitconfig /etc/gitconfig

RUN a2enmod rewrite
RUN a2enmod rewrite headers

EXPOSE 80

Expand Down
4 changes: 2 additions & 2 deletions static/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ function addBannerContents(bannerElement, msg) {
}

function updateMessageBanner() {
fetch('/static/messages.json')
fetch('/static/messages.json?v=1')
.then(r => r.json())
.then(messages => {
const msg = randomChoice(messages);
Expand All @@ -372,7 +372,7 @@ function updateMessageBanner() {
}

function cycleBanner(delay=500) {
fetch('/static/messages.json')
fetch('/static/messages.json?v=1')
.then(r => r.json())
.then(messages => {
cycleBannerWithData(messages, delay);
Expand Down
4 changes: 2 additions & 2 deletions templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<link rel="preload" crossorigin href="/static/fonts/ubuntu/ubuntu-v14-cyrillic_greek_latin_latin-ext_greek-ext_cyrillic-ext-700.woff2" as="font" />
<link rel="preload" crossorigin href="/static/fonts/ubuntu/ubuntu-v14-cyrillic_greek_latin_latin-ext_greek-ext_cyrillic-ext-italic.woff2" as="font" />

<link rel="preload" crossorigin href="/static/messages.json" as="fetch" />
<link rel="preload" crossorigin href="/static/messages.json?v=1" as="fetch" />

<script>
document.documentElement.classList.remove('no-js');
Expand Down Expand Up @@ -75,7 +75,7 @@
</span>
</footer>
</div>
<script src="/static/script.js?v=16"></script>
<script src="/static/script.js?v=17"></script>
<script src="/static/dynamic-references.js?v=4"></script>
<script src="/static/autocomplete.js" project="{{ current_project }}"></script>
</body>
Expand Down