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

Browser is not caching js/css files #814

Closed
roshansingh opened this issue Jan 15, 2022 · 2 comments · Fixed by #1784
Closed

Browser is not caching js/css files #814

roshansingh opened this issue Jan 15, 2022 · 2 comments · Fixed by #1784

Comments

@roshansingh
Copy link

Semaphore should respond with appropriate cache control headers for sempahore.

I am using nginx to proxy sempahore. This is the response:

curl -I 'https://example.com/js/app.cbdb12f7.js'

HTTP/1.1 200 OK
Server: nginx/1.18.0 (Ubuntu)
Date: Sat, 15 Jan 2022 14:29:17 GMT
Content-Type: application/javascript
Connection: keep-alive

If it returns cache control headers then it would load faster on slower internet connections.

@macau23
Copy link

macau23 commented Feb 25, 2024

I am getting a 15 second load time on /css/app.X.css for some reason, so perhaps this would help.

@tboerger
Copy link
Collaborator

I have created a pull request which integrates done basic cache headers for static assets.

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

Successfully merging a pull request may close this issue.

4 participants