mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-28 21:55:48 -04:00
* prepare dark mode stuffs * themed all global colors * store preference in local storage * toggle styling * lightbulb position * minify bundled script with uglify-js instead of hugo * detect whether user has an OS-wide dark mode preference and use that by default * two different colors for each homepage link * inline bulb SVGs into stylesheet * fingerprint and cache styles for a year * fix lightbulb positioning with weird magic numbers, will come back to that * themed syntax highlighting * use terser instead of uglify-js (b/c of ES6)
29 lines
766 B
Plaintext
29 lines
766 B
Plaintext
# Sensible default security headers
|
|
/*
|
|
Referrer-Policy: strict-origin-when-cross-origin
|
|
X-Content-Type-Options: nosniff
|
|
X-Frame-Options: sameorigin
|
|
X-XSS-Protection: 1; mode=block
|
|
|
|
# Super long cache (one year) for vendored assets:
|
|
# web fonts, emojis, etc.
|
|
/vendor/*
|
|
Cache-Control: max-age=31536000, public, immutable
|
|
|
|
# Kinda long cache (one day) for CSS, JS:
|
|
/css/*
|
|
Cache-Control: max-age=86400, public, immutable
|
|
/js/*
|
|
Cache-Control: max-age=86400, public, immutable
|
|
|
|
# Proper MIME type for Atom feed
|
|
/*.atom
|
|
Content-Type: application/atom+xml
|
|
|
|
# Recommended MIME type for PWA manifests
|
|
# https://github.com/w3c/manifest/issues/689
|
|
/manifest.json
|
|
Content-Type: application/manifest+json
|
|
/*.webmanifest
|
|
Content-Type: application/manifest+json
|