Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serve precompressed static assets #1594

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

marvinruder
Copy link
Owner

  • Let Vite compress static assets
  • Let Hono serve precompressed static assets
  • Use onFound method to add caching header
  • Add no-cache directive to every response by default

* Let Vite compress static assets
* Let Hono serve precompressed static assets
* Use `onFound` method to add caching header
* Add `no-cache` directive to every response by default

Signed-off-by: Marvin A. Ruder <[email protected]>
@marvinruder marvinruder added frontend Related to frontend package backend Related to backend package performance Improvement to performance labels Sep 20, 2024
@marvinruder marvinruder self-assigned this Sep 20, 2024
@marvinruder marvinruder linked an issue Sep 20, 2024 that may be closed by this pull request
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% (target: +0.00%) 100.00% (target: 100.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (5b0b27c) 11686 11686 100.00%
Head commit (1ed4fb2) 11569 (-117) 11569 (-117) 100.00% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1594) 10 10 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

@marvinruder marvinruder enabled auto-merge (squash) September 20, 2024 13:50
@marvinruder marvinruder merged commit 0d0d116 into main Sep 20, 2024
10 checks passed
@marvinruder marvinruder deleted the 1583-serve-precompressed-static-assets branch September 20, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend package frontend Related to frontend package performance Improvement to performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serve precompressed static assets
1 participant