Repository navigation
perf(images): reduce internal Docker I/O and add proxy and browser im… - #445
Closed
Shillerxorg wants to merge 1 commit into
Closed
Shillerxorg wants to merge 1 commit into
Shillerxorg wants to merge 1 commit into
Conversation
…age caching - Nginx proxy cache: add a dedicated 1GB disk cache zone in frontend nginx for /api/images/ with proxy_cache_lock to prevent redundant multi-hop transfers between frontend, backend, and PostgreSQL. - Backend HTTP cache headers: send Cache-Control with immutable 30-day max-age and ETag for official card and set images, and 1-hour must-revalidate for custom cards. Return 304 Not Modified on matching If-None-Match. - Frontend image loading: preserve native lazy loading in CardImage without forcing eager loading when entering the viewport margin. - Database: avoid passing pool arguments to create_engine when running tests against SQLite. - Tests: add comprehensive unit tests in test_image_cache_headers.py covering 200 headers, 304 responses, weak ETags, and custom card caching.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…age caching
What and why
Validation
Card UI (when applicable)
docs/CARD_SYSTEM.mdand followed the established card visual language where it fits