mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: fix cachable host generation
This commit is contained in:
1 parent
fc7e57cb8c
commit
7cee2eae4e
2 files changed
+3
-2
No files matched your search
@@ -166,7 +166,8 @@ class SWConfigHandler extends ResourceHandler {
|
|||||||
this.response.body = {
|
this.response.body = {
|
||||||
preload: SystemModel.get('ui-default.preload'),
|
preload: SystemModel.get('ui-default.preload'),
|
||||||
hosts: [
|
hosts: [
|
||||||
`${this.request.method}://${this.request.host}`,
|
`http://${this.request.host}`,
|
||||||
|
`https://${this.request.host}`,
|
||||||
SystemModel.get('server.url'),
|
SystemModel.get('server.url'),
|
||||||
SystemModel.get('server.cdn'),
|
SystemModel.get('server.cdn'),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.42.0",
|
"version": "4.42.1",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
|
|||||||
Reference in new issue
Block a user