3

Examining for http headers, I mentioned the header "X-Drupal-Cache HIT". I use varnish reverse proxy.

Is it necessary for this header to appear? Can I make it be ommited? If yes, how? Would that have negative implications?

5

To change drupal http-header information check out drupal_set_header() (D6) or drupal_add_http_header() (D7).

Looking at the documentation for _drupal_bootstrap_page_cache, it seems the header shows 'HIT' if the page is displayed from cache, and 'MISS' in the case it is not.

Check out Set X-Drupal-Cache header during page_cache_fastpath and Implement better cache headers for reverse proxies for more information about the X-Drupal-Cache header. It seems to be a Drupal 7 or Pressflow only thing.

1
  • 1
    I think there is no specific info about at these links.
    – john
    May 25 '11 at 8:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.