-
Notifications
You must be signed in to change notification settings - Fork 1
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
Pagespeed always returns the same score results for each site #1
Comments
Hey, glad this was of some use to someone! I haven't looked at it in awhile to be honest.... That said, I'm not doing any specific caching in the code, so unless a library that is being used is buggy (or the request it makes to Page Speed is being cached) I'm not sure how to help. The dependencies are a bit out of date in this repo at this point. I would imagine that bumping things to latest versions may potentially fix the issue. Have you attempted to update the |
Thanks for the response and the idea! I've tried updating psi and I'm getting this error - looks like they may have broken something with the new version of psi.
|
I took a pass at cleaning things up dependency wise, but the data structure is different in the latest version of the page speed API. Could you take a look at the open PR and possibly finish it up? I'm not really sure what the results send back to Slack should look like but I linked to the API docs in the PR. You should be able to run |
I've spent some time looking at this, but I'm more Ops than Dev and I'm unfortunately at a loss. Could you elaborate a bit on what needs to happen here? Attempting to run test.js currently gives the following error:
|
No problem at all, we'll get this working :) What version of node are you using? |
v13.1.0 |
Ok, sorry about the mixup. There was no code in the The part that needs completed is matching that API response ( |
Hi, thanks for developing this and hopefully it's still something you keep an eye on.
I've been employing the pagespeed-for-slackers Lambda as a Cloudwatch Rule taking custom json. Once I've tested any given URL with the Lambda, it shows the same scores in Slack every time I invoke the Lambda.
e.g. custom / test JSON
{ "url": "http://www.uber.com" }
First test - Google PageSpeed score (desktop): 83, Google PageSpeed score (mobile): 67
All subsequent tests - Google PageSpeed score (desktop): 83, Google PageSpeed score (mobile): 67
I can reproduce this with any url.
Of note, only the header line seems to be the exact same. The Total Resources, otherResponseBytes, etc, all may differ.
The text was updated successfully, but these errors were encountered: