glanceapp / glanceapp/glance

JavaScript Cache Busting

Open
#550 2 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Go
Stars
37.1k
Forks
1.5k
Avg merge
1h 11m
Merged PRs (30d)
1

Description

### Description

I've noticed for a while now that adding CSS via the `custom-css-file: ` in `theme: ` config applies cache busting which appends `?v=server-start-time`
https://github.com/glanceapp/glance/blob/9da79671582c91f17508662bc936c3f673595ada/internal/glance/templates/page.html#L20
but I'm not seeing any way for the JavaScript. Is there a reason for this?

I've been relying on workarounds for a while, but it's good to have one built in.

I'll submit a PR for this.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.