diff --git a/wagtail/contrib/wagtailfrontendcache/backends.py b/wagtail/contrib/wagtailfrontendcache/backends.py index 9496e2fc8..f924e1cd1 100644 --- a/wagtail/contrib/wagtailfrontendcache/backends.py +++ b/wagtail/contrib/wagtailfrontendcache/backends.py @@ -5,6 +5,8 @@ from django.utils.six.moves.urllib.parse import urlparse, urlunparse, urlencode from django.utils.six.moves.urllib.request import Request, urlopen from django.utils.six.moves.urllib.error import URLError, HTTPError +from wagtail.wagtailcore import __version__ + logger = logging.getLogger('wagtail.frontendcache') @@ -39,6 +41,7 @@ class HTTPBackend(BaseBackend): ]), headers={ 'Host': host, + 'User-Agent': 'Wagtail-frontendcache/' + __version__ }, method='PURGE' )