>> Secondly, there may be some things to consider with web caches. I
>> think you should add a vary header to indicate that the response will
>> vary depending on the value of the HTTP_X_MOZ header, or some such.
>
>Good point, thanks:
>
> def process_request(self, request):
> if 'prefetch' in request.META.get('HTTP_X_MOZ', '').lower():
> response = HttpResponseForbidden()
> response['Vary'] = 'x-moz'
> return response
Actually that will break all vary-header handling of Django. Better to
hook into the existing vary-header code. Look at the
django.views.decorators.vary stuff. It's mostly using the
patch_vary_headers from django.utils.cache.
bye, Georg