Skip to content

Commit

Permalink
Stop caching isos.acmcsuf.com file browser
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondburned committed May 1, 2024
1 parent 617e2d7 commit 2719f73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion servers/cs306/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,8 @@ isos.acmcsuf.com {
root /var/www/isos
browse
}
header Cache-Control "public, max-age=31536000, immutable"

# Only assign immutable Cache-Control header to files, not directories.
@files not path / */
header @files Cache-Control "public, max-age=31536000, immutable"
}

0 comments on commit 2719f73

Please sign in to comment.