302在天蓝色中重定向问题的后期部署

时间:2019-07-30 12:38:23

标签: json angular progressive-web-apps

我已经创建了角度渐进式Web应用程序,并且在chrome中工作正常,但是当我们在浏览器中打开时,显示302重定向错误并且CSS图像或字体未加载。当我清除缓存后,它可以正常工作,但是在新版本发布后,我遇到了同样的问题。下面是屏幕截图。

{
  "index": "/index.html",
  "assetGroups": [
    {
      "name": "app",
      "installMode": "prefetch",
      "resources": {
        "files": [
          "/favicon.ico",
          "/index.html",
          "/*.css",
          "/*.js"
        ],
        "urls":[ 
          "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700",
          "https://fonts.googleapis.com/**"
        ]
      }
    }, {
      "name": "assets",
      "installMode": "lazy",
      "updateMode": "prefetch",
      "resources": {
        "files": [
          "/assets/**",
          "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani|json)"
        ]
      }
    }
  ],
  "dataGroups":[
    {
      "name":"subscribe-api",
      "urls":["https://vecular-function.azurewebsites.net/api/HttpTrigger1?code=Cr/k7YoJPUi5mrgSQpA65V8mTg6tmgMP21wdlw5zXqRm2l9fouhZxg=="],
      "cacheConfig":{
        "strategy":"freshness",
        "maxSize": 20,
        "maxAge": "1h",
        "timeout": "3s"
      }
    }
  ]

}

0 个答案:

没有答案