clear Wordpress stuff
clear Wordpress stuff

file:a/readme.txt -> file:b/readme.txt
--- a/readme.txt
+++ b/readme.txt
@@ -112,7 +112,7 @@
     - Logged in cookie is a special cookie this plugin sets upon user login. Varnish Cache uses this cookie to bypass caching for logged in users.
 
     - This is a small step towards securing your site for denial of service attacks. Denial of service attacks can happen if the attacker bypasses Varnish Cache and hits the backend directly.
-    - With the current configuration and the way Wordpress works, this can still happen with POST/AJAX requests.
+    - With the current configuration and the way Drupal works, this can still happen with POST/AJAX requests.
 
 
 CREDITS / CONTACT

--- a/varnish-conf/v3/README.rst
+++ b/varnish-conf/v3/README.rst
@@ -18,7 +18,7 @@
 configuration for each customer.
 
 See `default.vcl` for an example of how to use this collection
-of VCLs to configure Varnish for a WordPress site.
+of VCLs to configure Varnish for a Drupal site.
 
 
 CloudFlare

--- a/varnish-conf/v3/lib/mobile_pass.vcl
+++ b/varnish-conf/v3/lib/mobile_pass.vcl
@@ -2,18 +2,8 @@
 
 # This simply bypasses the cache for anything that looks like a mobile
 # (or tablet) device.
-# Also passes through some requests that are specifically for the WordPress
-# Jetpack mobile plugin.
 
 sub vcl_recv {
-    # Rules specifically for the Jetpack Mobile module
-    if (req.url ~ "\?(.*&)?(ak_action|app-download)=") {
-        return(pass);
-    }
-    if (req.http.Cookie ~ "(^|;\s*)akm_mobile=") {
-        return(pass);
-    }
-
     # General User-Agent blacklist (anything that remotely looks like a mobile device)
     if (req.http.User-Agent ~ "(?i)ipod|android|blackberry|phone|mobile|kindle|silk|fennec|tablet|webos|palm|windows ce|nokia|philips|samsung|sanyo|sony|panasonic|ericsson|alcatel|series60|series40|opera mini|opera mobi|au-mic|audiovox|avantgo|blazer|danger|docomo|epoc|ericy|i-mode|ipaq|midp-|mot-|netfront|nitro|pocket|portalmmm|rover|sie-|symbian|cldc-|j2me|up\.browser|up\.link|vodafone|wap1\.|wap2\.") {
         return(pass);

--- a/varnish-conf/v4/README.rst
+++ b/varnish-conf/v4/README.rst
@@ -18,7 +18,7 @@
 configuration for each customer.
 
 See `default.vcl` for an example of how to use this collection
-of VCLs to configure Varnish for a WordPress site.
+of VCLs to configure Varnish for a Drupal site.
 
 
 CloudFlare

--- a/varnish-conf/v4/lib/mobile_pass.vcl
+++ b/varnish-conf/v4/lib/mobile_pass.vcl
@@ -2,18 +2,8 @@
 
 # This simply bypasses the cache for anything that looks like a mobile
 # (or tablet) device.
-# Also passes through some requests that are specifically for the WordPress
-# Jetpack mobile plugin.
 
 sub vcl_recv {
-    # Rules specifically for the Jetpack Mobile module
-    if (req.url ~ "\?(.*&)?(ak_action|app-download)=") {
-        return(pass);
-    }
-    if (req.http.Cookie ~ "(^|;\s*)akm_mobile=") {
-        return(pass);
-    }
-
     # General User-Agent blacklist (anything that remotely looks like a mobile device)
     if (req.http.User-Agent ~ "(?i)ipod|android|blackberry|phone|mobile|kindle|silk|fennec|tablet|webos|palm|windows ce|nokia|philips|samsung|sanyo|sony|panasonic|ericsson|alcatel|series60|series40|opera mini|opera mobi|au-mic|audiovox|avantgo|blazer|danger|docomo|epoc|ericy|i-mode|ipaq|midp-|mot-|netfront|nitro|pocket|portalmmm|rover|sie-|symbian|cldc-|j2me|up\.browser|up\.link|vodafone|wap1\.|wap2\.") {
         return(pass);

comments