{
  "hosting": {
    "public": "public",
    "headers": [
      {
        "source": "**/*.@(js|json|ico)",
        "headers": [
          {
            "key": "Cache-Control",
            "value": "max-age=31536000"
          }
        ]
      },
      {
        "source": "**/service-worker.js",
        "headers": [
          {
            "key": "Cache-Control",
            "value": "max-age=0"
          }
        ]
      }
    ]
  }
}

{
  "hosting": {
    "public": "public",
    "headers": [
      {
        "source": "**/*.@(js|json|ico|png|html)",
        "headers": [
          {
            "key": "Cache-Control",
            "value": "max-age=31536000"
          }
        ]
      },
      {
        "source": "**/service-worker.js",
        "headers": [
          {
            "key": "Cache-Control",
            "value": "max-age=0"
          }
        ]
      }
    ]
  }
}

Set browser caching for png and html
Set browser caching for png and html
