Title: set cache control headers
Last modified: August 19, 2016

---

# set cache control headers

 *  [roxstyle](https://wordpress.org/support/users/roxstyle/)
 * (@roxstyle)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/set-cache-control-headers/)
 * i do not know php, i would like to understand where(in what file) can i set the
   cache control for things like imgs, html, javascript, such as the following…
 * <?php header(“Content-Type: text/javascript; charset=utf-8”);
    header(“Cache-
   Control: max-age=31536000, public”); ?>

The topic ‘set cache control headers’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [roxstyle](https://wordpress.org/support/users/roxstyle/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/set-cache-control-headers/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
