Support cachebusters on custom.css

This commit is contained in:
Guangcong Luo
2025-07-23 04:29:23 -07:00
committed by GitHub
parent 458c26c83b
commit 7bbce1f98f

View File

@@ -348,7 +348,7 @@ export class ServerStream extends Streams.ObjectReadWriteStream<string> {
let server = staticServer;
if (req.url) {
if (req.url === '/custom.css') {
if (req.url === '/custom.css' || req.url.startsWith('/custom.css?')) {
server = cssServer;
} else if (req.url.startsWith('/avatars/')) {
req.url = req.url.slice(8);