| Index: modules/notificationserver/files/site.conf |
| =================================================================== |
| --- a/modules/notificationserver/files/site.conf |
| +++ b/modules/notificationserver/files/site.conf |
| @@ -7,6 +7,14 @@ |
| location /notification.json |
| { |
| + # Users that were in the browser notification test shouldn't see the same |
| + # thing again, so they're not seeing any notifications for now. |
| + # See https://issues.adblockplus.org/ticket/2982. |
| + if ($arg_lastVersion ~ "-2/[1-3]") |
| + { |
| + rewrite ^ /empty-notification.json last; |
| + } |
| + |
| fastcgi_pass unix:/tmp/multiplexer-fastcgi.sock; |
| include /etc/nginx/fastcgi_params; |
| fastcgi_cache notification; |
| @@ -14,3 +22,8 @@ |
| fastcgi_cache_valid any 1m; |
| fastcgi_cache_lock on; |
| } |
| + |
| +location /empty-notification.json |
| +{ |
| + root /var/www; |
| +} |