Title: 304 not modified header
Last modified: May 19, 2017

---

# 304 not modified header

 *  Resolved [grantdb](https://wordpress.org/support/users/sixer/)
 * (@sixer)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/304-not-modified-header/)
 * Hello thanks for the great plugin! I am wondering about the feature “304 not 
   modified” I haven’t been able to get this to work. I was successful with Supercache
   to get the 304 but not Cache Enabler.
 * My current header response:
 *     ```
       HTTP/1.1 200 OK => 
       Date => Fri, 19 May 2017 01:30:04 GMT
       Server => Apache
       x-cache-handler => wp
       Strict-Transport-Security => max-age=31536000
       Access-Control-Allow-Origin => *
       X-Content-Type-Options => nosniff
       X-Xss-Protection => 1; mode=block
       X-Frame-Options => SAMEORIGIN
       Upgrade => h2,h2c
       Connection => Upgrade, close
       Content-Length => 40865
       Content-Type => text/html; charset=UTF-8
       ```
   
 * Before cache files are generated:
 *     ```
       HTTP/1.1 200 OK => 
       Date => Fri, 19 May 2017 01:48:30 GMT
       Server => Apache
       Expires => Thu, 19 Nov 1981 08:52:00 GMT
       Cache-Control => no-store, no-cache, must-revalidate
       Pragma => no-cache
       Link => ; rel="https://api.w.org/", ; rel=shortlink
       Set-Cookie => PHPSESSID=f9caf8936004d8391dc0e89f3a5d86da; path=/
       Strict-Transport-Security => max-age=31536000
       Access-Control-Allow-Origin => *
       X-Content-Type-Options => nosniff
       X-Xss-Protection => 1; mode=block
       X-Frame-Options => SAMEORIGIN
       Upgrade => h2,h2c
       Connection => Upgrade, close
       Content-Length => 40802
       Content-Type => text/html; charset=UTF-8
       ```
   
 * Releavent .htaccess entry:
 *     ```
       $lt;FilesMatch "\.(gz|html)$">
       Header set Cache-Control "max-age=86400, private, must-revalidate"
       </FilesMatch>
       ```
   
 * Also I use Autoptimize and it sets some headers too but I don’t think it matters:
 *     ```
       $lt;IfModule mod_expires.c>
               ExpiresActive On
               ExpiresByType text/css A30672000
               ExpiresByType text/javascript A30672000
               ExpiresByType application/javascript A30672000
       </IfModule>
       ```
   
 * Looking for some tips to get this working I just can’t get this figured out!
 * Thank you!
    -  This topic was modified 8 years, 12 months ago by [grantdb](https://wordpress.org/support/users/sixer/).
      Reason: code escape

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

 *  Thread Starter [grantdb](https://wordpress.org/support/users/sixer/)
 * (@sixer)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/304-not-modified-header/#post-9147268)
 * Also tried:
 *     ```
       <IfModule mod_expires.c>
               ExpiresActive On
               ExpiresByType text/html A86400
               ExpiresByType application/gzip A86400
       </IfModule>
       ```
   
 * thanks
 *  [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * (@codyarsenault)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/304-not-modified-header/#post-9149811)
 * Hi,
 * Thanks for bringing this up. We have just released an updated version of Cache
   Enabler to fix this. Please upgrade to v1.2.2 and deactivate / re-activate the
   plugin. You should then be able to see the 304 status for the HTML doc.
    -  This reply was modified 8 years, 12 months ago by [codyarsenault](https://wordpress.org/support/users/codyarsenault/).
 *  Thread Starter [grantdb](https://wordpress.org/support/users/sixer/)
 * (@sixer)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/304-not-modified-header/#post-9150672)
 * Yay!
 *     ```
       last-modified	
       Fri, 19 May 2017 21:50:44 GMT
       access-control-allow-origin	
       *
       status	
       200
       date	
       Fri, 19 May 2017 22:27:32 GMT
       vary	
       Accept-Encoding
       content-encoding	
       gzip
       content-length	
       9636
       strict-transport-security	
       max-age=31536000
       x-frame-options	
       SAMEORIGIN
       content-type	
       text/html; charset=UTF-8
       x-xss-protection	
       1; mode=block
       x-content-type-options	
       nosniff
       server	
       Apache
       x-cache-handler	
       wp
       ```
   
 * Chrome dev tools after refresh
 *     ```
       date:Fri, 19 May 2017 22:35:47 GMT
       server:Apache
       status:304
       vary:Accept-Encoding
       ```
   
 * Thanks a bunch!

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

The topic ‘304 not modified header’ is closed to new replies.

 * ![](https://ps.w.org/cache-enabler/assets/icon.svg?rev=2442383)
 * [Cache Enabler](https://wordpress.org/plugins/cache-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-enabler/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [grantdb](https://wordpress.org/support/users/sixer/)
 * Last activity: [8 years, 12 months ago](https://wordpress.org/support/topic/304-not-modified-header/#post-9150672)
 * Status: resolved