---
title: PHP: header_remove
date: 2012-08-23T20:45:26+00:00
modified: 2012-08-23T20:45:27+00:00
permalink: https://kaspars.net/blog/php-header_remove
post_type: post
author:
  name: Kaspars
  avatar: https://reverse.kaspars.net/gravatar/avatar/92bfcd3a8c3a21a033a6484d32c25a40b113ec6891f674336081513d5c98ef76?s=96&d=mm&r=g
post_tag:
  - PHP
post_format:
  - Aside
category:
  - Web Performance
---

# PHP: header\_remove

> This function will remove all headers set by PHP, including cookies, session and the X-Powered-By headers.

This is an extremely handy function for serving a stale cache version of a page while generating and storing a fresh response from the server at the same time.

via [PHP: header\_remove – Manual](http://php.net/manual/en/function.header-remove.php).