Set Cache-Control headers for certain content on Firebase #64

Merged
vojta001 merged 0 commits from vojta001/cache-control into master 2020-10-07 20:13:46 +00:00
vojta001 commented 2020-10-07 11:43:56 +00:00 (Migrated from gitlab.com)

My reasoning is:

  • any CSS or JS files
    • their name contains their hash — 1 month
  • anything under img folder
    • might change while keeping name — 1 day
  • any image anywhere except img folder
    • usually giant photos attached to blog posts, rarely change and if they do, they usually change name as well — 1 month
My reasoning is: * any CSS or JS files * their name contains their hash — 1 month * anything under img folder * might change while keeping name — 1 day * any image anywhere except img folder * usually giant photos attached to blog posts, rarely change and if they do, they usually change name as well — 1 month
sijisu (Migrated from gitlab.com) approved these changes 2020-10-07 11:43:56 +00:00
sijisu commented 2020-10-07 11:59:27 +00:00 (Migrated from gitlab.com)

approved this merge request

approved this merge request
vojta001 commented 2020-10-07 12:17:33 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
Greenscreener commented 2020-10-07 12:41:35 +00:00 (Migrated from gitlab.com)

Awesome! I didn't know this was a thing. Also, there are different headers for client cache and CDN cache, so it might be worth specifying both.

Awesome! I didn't know this was a thing. Also, there are different headers for client cache and CDN cache, so it might be worth specifying both.
vojta001 commented 2020-10-07 14:51:59 +00:00 (Migrated from gitlab.com)

I don't think we need it unless we want to set a different policy for intermediate proxies.

I don't think we need it unless we want to set a different policy for intermediate proxies.
vojta001 commented 2020-10-07 20:13:46 +00:00 (Migrated from gitlab.com)

mentioned in commit 9342033393

mentioned in commit 93420333930ee38a8d8831289502b8c8e3502924
vojta001 commented 2020-10-10 09:02:48 +00:00 (Migrated from gitlab.com)

mentioned in commit b0d578dbe4

mentioned in commit b0d578dbe46b52f3363264b64c410fa4e81d793a
Sign in to join this conversation.