3 ms·
Might want to try some basic HTTP caching settings for the model. This way the browser doesn't need to re-download everything every time. This can probably be
by gwbas1c 9y ago
Might want to try some basic HTTP caching settings for the model. This way the browser doesn't need to re-download everything every time.
This can probably be configured in the server instead of in the application.
- wrigby 9y agoI think most CDNs will add reasonable cache-control headers as well - IIRC Cloudflare does this with sane defaults out of the box.
- reiinakano 9y agoStupid question: Is CloudFlare free for CDN purposes? Right now I'm serving everything from Github Pages. I don't expect there to be much traffic after this initial HN spike dies down, so if it isn't free, it won't be worth it for me to pay for it.
- wrigby 9y agoYep[1]! I used it for my girlfriend's small business site (Wordpress) and was very happy with it. I think CSS, JS, and images are cached - HTML is not. 1: https://www.cloudflare.com/plans/ https://www.cloudflare.com/plans/