Files
support-fins/web/_headers
matthewtrahan 2aa86a4b70 import: load the STEP kernel while the user picks a file, cache it a year
The pen holder (195 KB SolidWorks STEP) tessellates in 0.3 s; the rest
of a 1.7-3.4 s cold import was the ~2.9 MB kernel download. Start the
worker when Import is clicked or a file is dragged over, so the download
overlaps with the file dialog. The vendor folder now carries the version
(occt-import-js-0.0.23) and web/_headers marks it immutable for a year.
A failed read drops the worker so the next attempt starts clean.
2026-09-24 16:15:26 -05:00

6 lines
332 B
Plaintext

# Cloudflare static-asset headers. The STEP kernel (~2.9 MB brotli) never changes
# under a given path -- its folder name carries the version, so upgrading it is a
# new URL -- so browsers may keep it for a year instead of re-checking each visit.
/vendor/occt-import-js-0.0.23/*
Cache-Control: public, max-age=31536000, immutable