Implemented http/2 push
This commit is contained in:
parent
783c3f878c
commit
c81658b9f5
@ -29,6 +29,10 @@
|
||||
"scripts": {
|
||||
"main": "main"
|
||||
},
|
||||
"push": [
|
||||
"/scripts",
|
||||
"/images/elements/noise-strong.png"
|
||||
],
|
||||
"manifest": {
|
||||
"short_name": "notify.moe",
|
||||
"gcm_sender_id": "941298467524",
|
||||
|
@ -19,7 +19,7 @@ func UserInfo() aero.Middleware {
|
||||
next()
|
||||
|
||||
// Ignore non-HTML requests
|
||||
if ctx.IsMediaResponse() {
|
||||
if aero.IsMediaType(ctx.Response().Header().Get("Content-Type")) {
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user