Removing headers from backend response

You can remove headers from any backend response. This may be necessary if your application automatically sets headers. For example, Drupal can set the following Expires and Cache-Control headers to prevent caching:

Expires: Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified: Wed, 18 Jul 2012 18:52:16 +0000
Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0

To remove a header from the backend response, add a new header as follows:

  1. Log in to the Fastly application.
  2. Click configure (the wrench icon at the top of the window).
  3. From the Services menu, select the appropriate service.
  4. Click the blue Configure button.
  5. Click the Content link from the list on the left.
  6. In the Headers area, click New. The New Header window appears.

    the New Header window

  7. Fill out the New Header window as follows:

    • In the Name field, type a descriptive name for the header rule (e.g., Remove Expire Headers).
    • From the Type menu, select Cache, and from the Action menu, select Delete.
    • In the Destination field, type the name of the header (e.g., http.Expires).
    • From the Ignore If Set menu, select No.
    • In the Priority field, type 10.
  8. Click the Create button.

Back to Top