node-ajax-seo
Advanced tools
Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "node-ajax-seo", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "It deals with the most popular crawlers (Google, Twitter, Fb, LinkedIn, ...) redirecting them to static files but serving fresh pages to human users.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,9 +16,10 @@ node-ajax-seo | ||
-nonAjaxCondition (regex|string) regex condition (better choice this) or typical "if condition" as string to delimite non-ajax pages. | ||
For example: | ||
/((^\/admin)|(^\/api)|(\.)|(^\/$))/ | ||
Same result as: | ||
"(req.url.indexOf('/admin') == -1 && req.url.indexOf('/api') == -1 && req.url.indexOf('.') == -1 && req.url != '/')" | ||
-nonAjaxCondition (regex|string) regex condition (better choice this) or typical "if condition" as string to delimite non-ajax pages. | ||
For example: | ||
/((^\/admin)|(^\/api)|(\.)|(^\/$))/ | ||
Same result as: | ||
"(req.url.indexOf('/admin') == -1 && req.url.indexOf('/api') == -1 && req.url.indexOf('.') == -1 && req.url != '/')" | ||
-ajaxPath (string) path to your main SPA .html by default. | ||
-ajaxPath (string) path to your main SPA .html by default. | ||
@@ -33,3 +34,3 @@ -staticPages.path (string) path to your static files. | ||
-debug (boolean) Enables debug messages (false by default). | ||
-debug (boolean) Enables debug messages (false by default). | ||
@@ -36,0 +37,0 @@ ## Examples |
126
10634