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

Add cache-control headers to background images #261

Open
RayBB opened this issue May 7, 2024 · 0 comments
Open

Add cache-control headers to background images #261

RayBB opened this issue May 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@RayBB
Copy link

RayBB commented May 7, 2024

Description

We should add cache control headers to the background images.
That way each time you load the projects page it doesn't have to fully load those images from scratch.

Probably should be added here:

// Cache everything looking like an asset
if strings.HasPrefix(contentType, "image/") ||
strings.HasPrefix(contentType, "font/") ||
strings.HasPrefix(contentType, "~images/") ||
strings.HasPrefix(contentType, "~font/") ||

This is the url: https://try.vikunja.io/api/v1/projects/4/background

Vikunja Version

Version: v0.23.0

Browser and version

FF 125

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

image
@kolaente kolaente added the enhancement New feature or request label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants