Skip to content

WIP - working on cache-control changes for git-reader#1224

Draft
alexcottner wants to merge 4 commits intomainfrom
rmst-364
Draft

WIP - working on cache-control changes for git-reader#1224
alexcottner wants to merge 4 commits intomainfrom
rmst-364

Conversation

@alexcottner
Copy link
Contributor

work in progress, ignore for now...

settings: Settings = Depends(get_settings),
git: GitService = Depends(GitService.dep),
):
response.headers["cache-control"] = f"max-age={settings.cache_control_short}"
Copy link
Contributor

Choose a reason for hiding this comment

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

oh, that means we could potentially point the Push edges at the CDN 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Absolutely. We could also shrink this one even further if we wanted to, like 30 or 15 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants