Do not log an error for a legit request requiring no X-Cache-Channel

This commit is contained in:
Sandro Santilli
2014-02-24 17:34:00 +01:00
parent 4064b8f254
commit a13c1f61af
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@ Enhancements:
* Expand "addCacheChannel" stats
* Allow using GET with sql-api for queries shorter than configured len (#155)
[ new sqlapi.max_get_sql_length directive, defaults to 2048 ]
* Do not log an error for a legit request requiring no X-Cache-Channel
Bug fixes:
+5
View File
@@ -75,6 +75,11 @@ var CartodbWindshaft = function(serverOptions) {
// creation
return false;
}
if ( ! req.params ) {
// service requests (/version, /)
// have no need for an X-Cache-Channel
return false;
}
if ( statusCode != 200 ) {
// We do not want to cache
// unsuccessful responses