Skip to content

fix(web): activate and harden versioned static assets (#312) - #317

Merged
pitill0 merged 1 commit into
mainfrom
fix/issue-312-versioned-static-deployment
Oct 30, 2026
Merged

pitill0 merged 1 commit into
mainfrom
fix/issue-312-versioned-static-deployment

Conversation

@pitill0

@pitill0 pitill0 commented Oct 30, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #312.

Activate content-addressed Web static assets in the repository's Compose deployment and harden the existing publication and HTTP delivery mechanisms.

Changes

  • Enable versioned static assets explicitly in compose.yaml, backed by persistent storage.
  • Ensure legacy CSS uses Cache-Control: no-cache.
  • Align HEAD and GET representation headers for versioned gzip assets.
  • Remove the obsolete favicon declaration.
  • Clean up stale temporary snapshot directories under the publication lock.
  • Improve diagnostics for corrupted snapshots without automatically deleting published data.
  • Update Web deployment documentation and the changelog.
  • Add regression coverage for caching, deployment configuration, snapshot lifecycle and symlink substitution.

Validation

  • Full pytest suite: 1,887 passed, 8 skipped.
  • Ruff lint and formatting: passed.
  • Mypy: passed.
  • JavaScript syntax: passed.
  • Bandit: no findings.
  • Fresh isolated Web dependency installation: pip check passed; pip-audit reported no known vulnerabilities.

The historical local development environment contains outdated dependencies and has separate pip-audit findings. Production deployment and CI dependency validation remain separate checks.

Deployment notes

Versioned static assets are opt-in outside the repository's Compose configuration. Deployments require persistent, writable storage under FLUXTUNER_DATA_DIR/web/static-builds/.

No changes have been applied to the existing Lokalix deployment.

@pitill0 pitill0 self-assigned this Oct 30, 2026
@pitill0
pitill0 merged commit ad6406e into main Oct 30, 2026
7 checks passed
@pitill0
pitill0 deleted the fix/issue-312-versioned-static-deployment branch October 30, 2026 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf(web): enable and harden versioned static assets in deployments

1 participant