From 1cc1ec02aadf28b9576100425041ff24a016673c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 14 Oct 2015 22:03:51 +0200 Subject: [PATCH] AJAX Crawl Specification is depreciated See [1] for more information. [1] http://googlewebmastercentral.blogspot.fr/2015/10/deprecating-our-ajax-crawling-scheme.html --- README.md | 19 ------------------- web/index.html | 1 - web/js/011-display.js | 4 ---- 3 files changed, 24 deletions(-) diff --git a/README.md b/README.md index eb5f7de..ff23442 100644 --- a/README.md +++ b/README.md @@ -155,25 +155,6 @@ Note that the `internal-*` paths must match that of `app.cfg`. This makes use of plugins = python27 module = floatapp:app -## Optional: Server-side Rendering - -Some webpages may desire to optionally render pages server side when special query strings are attached, so that GoogleBot may index pages. PhotoFloat supports the [AJAX crawl specification](https://developers.google.com/webmasters/ajax-crawling/). - - location / { - location = / { - include uwsgi_params; - uwsgi_param HTTP_X_SE_ORIGINAL_URL $scheme://$host$request_uri; - if ($args ~* _escaped_fragment_=) { - uwsgi_pass unix:/var/run/uwsgi-apps/server-execute-phantom.socket; - } - } - index index.html; - root /var/www/htdocs/photos.jasondonenfeld.com; - } - -This makes use of the [Server Execute Phantom project](http://git.zx2c4.com/server-execute-phantom/about/). - - ## Optional: Deployment Makefiles Both the scanner and the webpage have a `make deploy` target, and the scanner has a `make scan` target, to automatically deploy assets to a remote server and run the scanner. For use, customize `deployment-config.mk` in the root of the project, and carefully read the `Makefile`s to learn what's happening. diff --git a/web/index.html b/web/index.html index 556e8e2..2bcd2ac 100644 --- a/web/index.html +++ b/web/index.html @@ -3,7 +3,6 @@ - Photos diff --git a/web/js/011-display.js b/web/js/011-display.js index 5e73920..7111572 100644 --- a/web/js/011-display.js +++ b/web/js/011-display.js @@ -315,10 +315,6 @@ $(document).ready(function() { $("#loading").show(); $("link[rel=image_src]").remove(); $("link[rel=video_src]").remove(); - if (location.search.indexOf("?_escaped_fragment_=") === 0) { - location.hash = location.search.substring(20); - location.search = ""; - } photoFloat.parseHash(location.hash, hashParsed, die); }); $(window).hashchange();