mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: handle cache for opaque requests
This commit is contained in:
1 parent
63f3202241
commit
fc7e57cb8c
2 files changed
+26
-11
No files matched your search
@@ -165,6 +165,11 @@ class SWConfigHandler extends ResourceHandler {
|
||||
async get() {
|
||||
this.response.body = {
|
||||
preload: SystemModel.get('ui-default.preload'),
|
||||
hosts: [
|
||||
`${this.request.method}://${this.request.host}`,
|
||||
SystemModel.get('server.url'),
|
||||
SystemModel.get('server.cdn'),
|
||||
],
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user