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

feat: replace packr and add basic cache headers #1784

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

tboerger
Copy link
Collaborator

Since packr have been deprecated in favor of go:embed for quite some time now I have replaced it with plain go:embed functionality which makes it more future proof.

The only downside is that go:embed can use relativ paths only, that's why I have moved the web/dist folder into api/public.

Besides that I have refactored the static asset handling which includes basic last modification and cache control headers to improve the cache cache behavior for static assets.

Fixes #1780
Fixes #814

@tboerger tboerger force-pushed the embed-and-cache branch 3 times, most recently from 29dc20e to 8b059d1 Compare March 1, 2024 12:49
@tboerger tboerger requested a review from fiftin March 1, 2024 12:50
Since packr have been deprecated in favor of go:embed for quite some
time now I have replaced it with plain go:embed functionality which
makes it more future proof.

The only downside is that go:embed can use relativ paths only, that's
why I have moved the web/dist folder into api/public.

Besides that I have refactored the static asset handling which includes
basic last modification and cache control headers to improve the cache
cache behavior for static assets.
@tboerger tboerger force-pushed the embed-and-cache branch 2 times, most recently from 012b809 to 67954b9 Compare March 1, 2024 15:31
@fiftin
Copy link
Collaborator

fiftin commented Mar 2, 2024

I didn't find any problems in the code. It works like expected.

@fiftin fiftin merged commit 7c0fed0 into semaphoreui:develop Mar 2, 2024
4 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.

Semaphore really slow because of serving css file Browser is not caching js/css files
2 participants