Title: Proxy server cache support
Last modified: August 21, 2016

---

# Proxy server cache support

 *  [Sergey.S.Betke](https://wordpress.org/support/users/sergeysbetkenovgaroru/)
 * (@sergeysbetkenovgaroru)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/proxy-server-cache-support/)
 * Please, change the code:
 *     ```
       function phpch_headers() {
       		$expires = get_option( 'phpch_setting', 3600 );
   
       		if ( $expires >= 0 ) {
       			header("Pragma: public");
       			header("Cache-Control: public, max-age=".$expires);
       		} else {
       			header("Pragma: no-cache");
       			header("Cache-Control: no-cache, max-age=".$expires);
       		}
   
       		header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
         }
       ```
   
 * Without `public` and with `must-revalidate` proxy server cache doesn’t work. 
   My version work with ISA server cache, ARR cache, IIS cache and do on…
 * [https://wordpress.org/plugins/php-cache-headers/](https://wordpress.org/plugins/php-cache-headers/)

The topic ‘Proxy server cache support’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-cache-headers.svg)
 * [PHP Cache Headers](https://wordpress.org/plugins/php-cache-headers/)
 * [Support Threads](https://wordpress.org/support/plugin/php-cache-headers/)
 * [Active Topics](https://wordpress.org/support/plugin/php-cache-headers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-cache-headers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-cache-headers/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Sergey.S.Betke](https://wordpress.org/support/users/sergeysbetkenovgaroru/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/proxy-server-cache-support/)
 * Status: not resolved