Skip to content

move favicon and css to stable, non-random routes#1472

Merged
svenstaro merged 1 commit intosvenstaro:masterfrom
ahti:asset-paths
Feb 6, 2025
Merged

move favicon and css to stable, non-random routes#1472
svenstaro merged 1 commit intosvenstaro:masterfrom
ahti:asset-paths

Conversation

@ahti
Copy link
Copy Markdown
Contributor

@ahti ahti commented Feb 6, 2025

Favicon and stylesheet are currently served at random paths in order to avoid collisions. However, this causes problems with running multi-replica deployments as well as caching, because the path is not stable across multiple instances/restarts of miniserve.

In order to address this, this PR moves the paths to stable routes prefixed by "__miniserve_internal", which should provide enough protection from accidental collisions.

@svenstaro
Copy link
Copy Markdown
Owner

svenstaro commented Feb 6, 2025

Fixes #1424 and probably #1406.

@svenstaro svenstaro merged commit e5a877f into svenstaro:master Feb 6, 2025
svenstaro added a commit that referenced this pull request Feb 6, 2025
@ahti ahti deleted the asset-paths branch February 8, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants