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

Google Page Speed #165

Closed
krishaamer opened this issue Mar 23, 2017 · 1 comment
Closed

Google Page Speed #165

krishaamer opened this issue Mar 23, 2017 · 1 comment
Labels

Comments

@krishaamer
Copy link

krishaamer commented Mar 23, 2017

Thanks for the amazing plugin!

I'm testing my site with Google Page Speed and it complains because the Google Analytics script is not being cached. Can we cache Analytics so Meteor users could have a nice 100/100 score? :)

Leverage browser caching
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.
Leverage browser caching for the following cacheable resources:
https://www.google-analytics.com/analytics.js (2 hours)

You can check out the site here: https://www.100objects.fi

@cfnelson
Copy link
Contributor

@krishaamer Caching is outside the scope of this package. If you arer looking to improve your page speed you will need to be serving your apps assets, .js and .css from a CDN. This is where you would specify any cache times.

On the note of google analytics, they provide/set the 2 hours cache time because they wish to update the script regularly.

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

No branches or pull requests

2 participants