Title: add to php header
Last modified: August 20, 2016

---

# add to php header

 *  Resolved [haxxxton](https://wordpress.org/support/users/haxxxton/)
 * (@haxxxton)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/add-to-php-header/)
 * Hey guys,
 * I’m trying to stop my site from being cached locally by adding the following 
   to the PHP header
 * `header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');`
 * however, i obviously cant just put this in the header.php because the headers
   have already been sent by WordPress..
 * does anyone know how to add to/replace the default header that WordPress sends?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/add-to-php-header/#post-2980646)
 * Possibly this: [http://wordpress.stackexchange.com/questions/20192/wp-function-filter-for-modifying-http-headers](http://wordpress.stackexchange.com/questions/20192/wp-function-filter-for-modifying-http-headers)
 *  Thread Starter [haxxxton](https://wordpress.org/support/users/haxxxton/)
 * (@haxxxton)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/add-to-php-header/#post-2980658)
 * awesome, thanks keesiiemeijer

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘add to php header’ is closed to new replies.

## Tags

 * [no-cache](https://wordpress.org/support/topic-tag/no-cache/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [haxxxton](https://wordpress.org/support/users/haxxxton/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/add-to-php-header/#post-2980658)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
