def _is_no_cache(request):
  """Returns True if the request should skip the cache."""
  cache_control = request.headers.get('Cache-Control') or ''
  return 'no-cache' in cache_control or 'max-age=0' in cache_control