mirror of
https://github.com/gittrahan/support-fins.git
synced 2026-10-22 03:42:40 -05:00
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.
6 lines
332 B
Plaintext
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
|