mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
The nginx sidecar's static location (`location ~* \.(css|js|...)$`) ended in `try_files $uri =404`. Moodle 5.3 serves its ES modules from `/core/esm/<rev>/...` through r.php, and those paths do not exist on disk. Regex locations win over `location /`, so every module URL ending in `.js` (`bootstrap/bootstrap.js`, `@moodlehq/design-system/theme-boost/index.js`, ...) got nginx's own 404 and never reached PHP; both are preloaded on every page. Fall back to `/r.php` like `location /` does. Files that exist on disk are still served directly with their cache headers. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>