Implemented http/2 push

This commit is contained in:
Eduard Urbach 2017-11-11 17:34:21 +01:00
parent 783c3f878c
commit c81658b9f5
2 changed files with 5 additions and 1 deletions

View File

@ -29,6 +29,10 @@
"scripts": {
"main": "main"
},
"push": [
"/scripts",
"/images/elements/noise-strong.png"
],
"manifest": {
"short_name": "notify.moe",
"gcm_sender_id": "941298467524",

View File

@ -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
}