Commit 846a0ced authored by Leon Byford's avatar Leon Byford

Merge branch 'caching' into 'master'

Implement caching for certain static assets

See merge request !12
parents b9f521ce 26c1b99f
......@@ -5,3 +5,18 @@
X-Content-Type-Options: nosniff
Referrer-Policy: same-origin
Expect-CT: max-age=86400, enforce, report-uri="https://ldjb.report-uri.com/r/d/ct/enforce"
/lib/script.js
Cache-Control: public, max-age=31536000
/style.css
Cache-Control: public, max-age=31536000
/lib/anchor.min.js
Cache-Control: public, max-age=31536000
/images/square.svg
Cache-Control: public, max-age=31536000
/images/cc-by-nc-sa.png
Cache-Control: public, max-age=31536000
......@@ -5,7 +5,7 @@
{% include meta.html %}
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/style.css" />
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/style.css?{{site.time | date: '%s'}}" />
<link rel="alternate" type="application/rss+xml" title="{{ site.name }} - {{ site.description }}" href="{{ site.baseurl }}/feed.xml" />
<!-- Created with Jekyll Now - http://github.com/barryclark/jekyll-now -->
......@@ -50,6 +50,6 @@
</div>
</div>
<script src="/lib/anchor.min.js"></script>
<script src="/lib/script.js"></script>
<script src="/lib/script.js?{{site.time | date: '%s'}}"></script>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment