Title: Cache-Control: no-cache
Last modified: December 16, 2021

---

# Cache-Control: no-cache

 *  Resolved [francoispe](https://wordpress.org/support/users/francoispe/)
 * (@francoispe)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/cache-control-no-cache-2/)
 * Hello,
    I use WP-optimize 3.2.1 with DIVI builder Compared to all other optimization
   plugin, I think this is the best: easier to use, very efficient. Thanks a lot
   for that job. Nevertheless, I face a difficulty. I set Cache-Control for my website:
   static headers. i check .htaccess that’s ok : all is in. But, first header sent
   by my website is “Cache-Control: no-cache” ! Please tell me, where to look at.
   Many thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcache-control-no-cache-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/cache-control-no-cache-2/#post-15172179)
 * [@francoispe](https://wordpress.org/support/users/francoispe/) Could you please
   try to Preload the urls from WP-Optimize > Preload and then check the first header
   sent by the website its set to Cache-Control:cache
 *  Thread Starter [francoispe](https://wordpress.org/support/users/francoispe/)
 * (@francoispe)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/cache-control-no-cache-2/#post-15172396)
 * Hello,
    thanks a lot for your answer. I preload and it says :”Last preload completed
   at 8:09 a.m., December 17, 2021 ” still “no-cache” ?
 *  Thread Starter [francoispe](https://wordpress.org/support/users/francoispe/)
 * (@francoispe)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/cache-control-no-cache-2/#post-15173317)
 * I dig a bit
    this is line 554 in wp-content/plugins/wp-optimize/cache/file-based-
   page-cache-functions.php I comment it and now there is no more ‘no-cache’ header
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cache-control-no-cache-2/#post-15175548)
 * [@francoispe](https://wordpress.org/support/users/francoispe/) Thanks for sharing
   it, I’ll share the same with our development team for further investigation and
   if its a bug, it will be fixed in next release.
 *  Thread Starter [francoispe](https://wordpress.org/support/users/francoispe/)
 * (@francoispe)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cache-control-no-cache-2/#post-15175918)
 * If you want to have more info, don’t hesitate I’m ready to help
 *  Thread Starter [francoispe](https://wordpress.org/support/users/francoispe/)
 * (@francoispe)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cache-control-no-cache-2/#post-15175973)
 * An additional info : my .htaccess still contains cache header but in my wordpress,
   it is mentionned “deactivated”
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cache-control-no-cache-2/#post-15178991)
 * [@francoispe](https://wordpress.org/support/users/francoispe/) Could you please
   try to test you site here: [https://www.giftofspeed.com/gzip-test/](https://www.giftofspeed.com/gzip-test/)
 * If it says the site is GZIP enabled then not to worry about the backend of WP-
   Optimize.

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

The topic ‘Cache-Control: no-cache’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Harshad](https://wordpress.org/support/users/bornforphp/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/cache-control-no-cache-2/#post-15178991)
 * Status: resolved