Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leverage browser caching #14

Open
coliff opened this issue May 23, 2017 · 5 comments
Open

Leverage browser caching #14

coliff opened this issue May 23, 2017 · 5 comments

Comments

@coliff
Copy link
Collaborator

coliff commented May 23, 2017

Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.

Currently, most images have a 10 minute cache life.

https://developers.google.com/speed/pagespeed/insights/?url=hnkansai.github.io&tab=mobile

@benmurden
Copy link
Collaborator

Can this even be done with GitHub Pages? One would need access to set HTTP headers, which as far as I know, can't be done here.

@coliff
Copy link
Collaborator Author

coliff commented May 24, 2017

Good point. Would need to add Cloudflare for this then.

@benmurden
Copy link
Collaborator

Can that be done on the free tier? Do you have experience setting that up?

@coliff
Copy link
Collaborator Author

coliff commented May 24, 2017

Yes, I've set it up a number of times. It's totally free and has many advantages - including free SSL, so the URL can be: https://hnkansai.org/. I'll post the required steps here shortly....

@coliff
Copy link
Collaborator Author

coliff commented May 27, 2017

Quick instructions here. Really easy, setup free Cloudflare account, change Nameservers for the domain to ones provided by Cloudflare.
https://hackernoon.com/set-up-ssl-on-github-pages-with-custom-domains-for-free-a576bdf51bc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants