Graphcool / graphcool-framework

Apache License 2.0
1.77k stars 130 forks source link

Increase files' browser cache lifetime #57

Open marktani opened 6 years ago

marktani commented 6 years ago

Issue by sedubois Wednesday Apr 19, 2017 at 10:13 GMT Originally opened as https://github.com/graphcool/prisma/issues/177


E.g. for the website graphqltalks.com, the top recommendation of Pingdom to improve performance is to increase the caching lifetime of images hosted on files.graph.cool to at least a week: https://tools.pingdom.com/#!/bXinKV/https://www.graphqltalks.com/

marktani commented 6 years ago

Comment by lucfranken Wednesday May 03, 2017 at 10:38 GMT


Totally agree. A file should be immutable and the url should not have a cache lifetime. It can be permanent in general.

In https://github.com/graphcool/feature-requests/issues/182 is the solution to block access when not available anymore.