From 01fbc19cdacd92a0550f639c9e491404ab6db403 Mon Sep 17 00:00:00 2001 From: obergodmar Date: Fri, 10 Jul 2020 23:11:56 +0300 Subject: [PATCH] Reducing image size; add Firebase hosting --- .firebaserc | 5 +++ firebase.json | 39 ++++++++++++++++++ public/index.html | 9 ---- .../preview/halls-of-valor-1.jpg | Bin 54871 -> 30443 bytes .../preview/halls-of-valor-2.jpg | Bin 51748 -> 28138 bytes .../preview/halls-of-valor-3.jpg | Bin 44708 -> 23014 bytes .../preview/halls-of-valor-4.jpg | Bin 46589 -> 24566 bytes .../halls-of-valor/view/halls-of-valor-1.jpg | Bin 329768 -> 212357 bytes .../halls-of-valor/view/halls-of-valor-2.jpg | Bin 285960 -> 190207 bytes .../halls-of-valor/view/halls-of-valor-3.jpg | Bin 264425 -> 214177 bytes .../halls-of-valor/view/halls-of-valor-4.jpg | Bin 278839 -> 215550 bytes .../preview/stormwind-park-1.jpg | Bin 68213 -> 32073 bytes .../preview/stormwind-park-2.jpg | Bin 52909 -> 28862 bytes .../preview/stormwind-park-3.jpg | Bin 55404 -> 30227 bytes .../preview/stormwind-park-4.jpg | Bin 51579 -> 28165 bytes .../preview/stormwind-park-5.jpg | Bin 56598 -> 31154 bytes .../preview/stormwind-park-6.jpg | Bin 53379 -> 28262 bytes .../preview/stormwind-park-7.jpg | Bin 43728 -> 22431 bytes .../preview/stormwind-park-8.jpg | Bin 44840 -> 23544 bytes .../preview/stormwind-park-9.jpg | Bin 44640 -> 23099 bytes .../stormwind-park/view/stormwind-park-1.jpg | Bin 433906 -> 272767 bytes .../stormwind-park/view/stormwind-park-2.jpg | Bin 400741 -> 255490 bytes .../stormwind-park/view/stormwind-park-3.jpg | Bin 502367 -> 334422 bytes .../stormwind-park/view/stormwind-park-4.jpg | Bin 343775 -> 216547 bytes .../stormwind-park/view/stormwind-park-5.jpg | Bin 510104 -> 336776 bytes .../stormwind-park/view/stormwind-park-6.jpg | Bin 368951 -> 256157 bytes .../stormwind-park/view/stormwind-park-7.jpg | Bin 290319 -> 207313 bytes .../stormwind-park/view/stormwind-park-8.jpg | Bin 332554 -> 243965 bytes .../stormwind-park/view/stormwind-park-9.jpg | Bin 304270 -> 211034 bytes 29 files changed, 44 insertions(+), 9 deletions(-) create mode 100644 .firebaserc create mode 100644 firebase.json diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 0000000..ae321fd --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "wow-places" + } +} diff --git a/firebase.json b/firebase.json new file mode 100644 index 0000000..7ff5623 --- /dev/null +++ b/firebase.json @@ -0,0 +1,39 @@ +{ + "hosting": { + "public": "build", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ], + "headers": [ + { + "source": "**/*", + "headers": [ + { + "key": "cache-control", + "value": "cache-control: public, max-age=0, must-revalidate" + } + ] + }, + { + "source": "static/**", + "headers": [ + { + "key": "cache-control", + "value": "public, max-age=31536000, immutable" + } + ] + }, + { + "source": "**/*.@(css|js|ogg|mp3)", + "headers": [ + { + "key": "cache-control", + "value": "public, max-age=31536000, immutable" + } + ] + } + ] + } +} diff --git a/public/index.html b/public/index.html index 47d9cf3..0126070 100644 --- a/public/index.html +++ b/public/index.html @@ -14,15 +14,6 @@ WoW Best Places