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