★ wanayoo — archive 1999 https://github.com/greengerong/prerender-java/pull/43Nouvelle recherche | Portail wanayoo
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

Whitelisting socketTimeout parameter and added Googlebot #43

Open
wants to merge 2 commits into
base: master
from

Conversation

@kartikl
Copy link

@kartikl kartikl commented Nov 8, 2017

No description provided.

kartikl added 2 commits Nov 7, 2017
…eout" to the whitelisted parameters

2. Add "GoogleBot" as a crawler agent
@@ -14,7 +14,7 @@
public class PreRenderSEOFilter implements Filter {
public static final List<String> PARAMETER_NAMES = Lists.newArrayList("preRenderEventHandler", "proxy", "proxyPort",
"prerenderToken", "forwardedURLHeader", "crawlerUserAgents", "extensionsToIgnore", "whitelist",
"blacklist", "prerenderServiceUrl");
"blacklist", "prerenderServiceUrl","socketTimeout");

This comment has been minimized.

@kartikl

kartikl Nov 8, 2017
Author

Since socketTimeout was not a 'whitelisted' parameter, override from within our filters did not work. Adding this enabled us to specify socket timeouts for callouts to prerender.

@thoop
Copy link
Contributor

@thoop thoop commented Nov 8, 2017

You should not add the Googlebot user agent to the list of user agents being checked. Checking Googlebot by their user agent could get you penalized for cloaking.

Google follows the escaped fragment crawling protocol so if you add <meta name="fragment" content="!"> to the <head> of your pages then Google will access the ?_escaped_fragment_= URL

@kartikl
Copy link
Author

@kartikl kartikl commented Nov 10, 2017

@thoop thanks. Will remove googlebot

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.