You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ Use this java filter that prerenders a javascript-rendered page using an externa
38
38
2. Check to make sure we aren't requesting a resource (js, css, etc...)
39
39
3. (optional) Check to make sure the url is in the whitelist
40
40
4. (optional) Check to make sure the url isn't in the blacklist
41
-
2. Make a `GET` request to the [prerender service](https://github.com/collectiveip/prerender)(phantomjs server) for the page's prerendered HTML
41
+
2. Make a `GET` request to the [prerender service](https://github.com/prerender/prerender)(phantomjs server) for the page's prerendered HTML
42
42
3. Return that HTML to the crawler
43
43
44
44
## Customization
@@ -56,7 +56,7 @@ We usually set the original url in an http header which is added by the reverse
56
56
57
57
### Using your own prerender service
58
58
59
-
If you've deployed the prerender service on your own, set the `PRERENDER_SERVICE_URL` environment variable so that this package points there instead. Otherwise, it will default to the service already deployed at `http://prerender.herokuapp.com`
59
+
If you've deployed the prerender service on your own, set the `PRERENDER_SERVICE_URL` environment variable so that this package points there instead. Otherwise, it will default to the service already deployed at `http://service.prerender.io/`
60
60
61
61
$ export PRERENDER_SERVICE_URL=<new url>
62
62
@@ -92,16 +92,21 @@ If you want to cache the caching, analytics, log or others, you can config it. I
92
92
93
93
## Testing
94
94
95
-
If you want to make sure your pages are rendering correctly:
95
+
If your URLs use a hash-bang:
96
96
97
-
1. Open the Developer Tools in Chrome (Cmd + Atl + J)
98
-
2. Click the Settings gear in the bottom right corner.
99
-
3. Click "Overrides" on the left side of the settings panel.
100
-
4. Check the "User Agent" checkbox.
101
-
6. Choose "Other..." from the User Agent dropdown.
102
-
7. Type `googlebot` into the input box.
103
-
8. Refresh the page (make sure to keep the developer tools open).
97
+
If you want to see `http://localhost:3000/#!/profiles/1234`
98
+
Then go to `http://localhost:3000/?_escaped_fragment_=/profiles/1234`
104
99
100
+
If your URLs use push-state:
101
+
102
+
If you want to see `http://localhost:3000/profiles/1234`
103
+
Then go to `http://localhost:3000/profiles/1234?_escaped_fragment_=`
0 commit comments