Skip to content

shorter cache policy for non-200s and sws non-term urls - #576

Merged
devights merged 2 commits into
mainfrom
hotfix/cache-policy
Sep 21, 2026
Merged

devights merged 2 commits into
mainfrom
hotfix/cache-policy

Conversation

@devights

Copy link
Copy Markdown
Contributor

No description provided.

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 35286738921

Coverage increased (+0.04%) to 79.084%

Details

  • Coverage increased (+0.04%) from the base build.
  • Patch coverage: 13 of 13 lines across 2 files are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 4977
Covered Lines: 3936
Line Coverage: 79.08%
Coverage Strength: 0.79 hits per line

💛 - Coveralls

@devights
devights requested review from jlaney and a lite review from Copilot September 18, 2026 00:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The cache policy changes are focused, consistent, and covered by corresponding tests.

Pull request overview

Updates cache expiration policies for SWS responses and pins npm during the frontend build.

Changes:

  • Cache non-200 responses for seven minutes.
  • Cache SWS term URLs for one day and other SWS URLs for 15 minutes.
  • Add coverage for the new cache policies and update npm.
File summaries
File Description
Dockerfile Pins npm 11.19.1 for frontend installation.
compass/cache.py Implements updated cache expiration rules.
compass/tests/test_cache.py Tests term, non-term, and non-200 SWS caching.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@devights
devights merged commit 8810c99 into main Sep 21, 2026
5 checks passed
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.

4 participants