# The DOS door runtime is the biggest download on the board: the
# emulator core, the BIOS images, and the 1.44MB boot floppy. Every
# URL to these files carries a ?v= stamp that changes when the board
# upgrades, so browsers may cache them for a year without ever
# serving a stale runtime after an update. Without these rules many
# shared hosts make the browser revalidate (or re-download) all of
# it on every door entry, which is most of "the door takes forever
# to load" on a repeat visit.
<IfModule mod_mime.c>
AddType application/wasm .wasm
</IfModule>
<FilesMatch "\.(wasm|img|bin|js)$">
  <IfModule mod_headers.c>
    Header set Cache-Control "public, max-age=31536000, immutable"
  </IfModule>
  <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 year"
  </IfModule>
</FilesMatch>
