go-vikunja/vikunja

Add cache-control headers to background images

RayBB opened this issue · 0 comments

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