Title: Cache Warning
Last modified: August 22, 2016

---

# Cache Warning

 *  [aminabbasian](https://wordpress.org/support/users/aminabbasian/)
 * (@aminabbasian)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cache-warning/)
 * Hey, I am receiving this error within the title of pages
 * `<!-- Quick Cache is not caching this page, because '$_SERVER['REQUEST_METHOD']'
   is 'POST','PUT','DELETE','HEAD','OPTIONS','TRACE' or 'CONNECT'. These request
   methods should never (ever) be cached in any way. -->`
 * The website loads via Ajax and appears when clicking from page to page but disappears
   if I refresh the page I am on.
 * What does this mean and how can I resolve it?
 * [https://wordpress.org/plugins/quick-cache/](https://wordpress.org/plugins/quick-cache/)

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

 *  Plugin Author [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * (@raamdev)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cache-warning/#post-5752799)
 * > The website loads via Ajax
 * Could you explain what that means, in a little more detail, please?
 * If you could also share a link to the site, that would be helpful.
 *  Thread Starter [aminabbasian](https://wordpress.org/support/users/aminabbasian/)
 * (@aminabbasian)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cache-warning/#post-5752819)
 * Hey Raam,
 * Please see [here](http://bandhbuildings.com/)
 * You won’t see the error in the title at first but if you click on the pages and
   then hover over the title you will see the warning message.
 * Thanks
 *  Plugin Author [JasWSInc](https://wordpress.org/support/users/jaswsinc/)
 * (@jaswsinc)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cache-warning/#post-5752825)
 * From this URL retrieved via AJAX:
    view-source:[http://bandhbuildings.com/bookings/?info=title](http://bandhbuildings.com/bookings/?info=title)
 * I find the following…
 *     ```
       Bookings | B&H Buildings | Bourne & Hollingsworth Buildings Restaurant
       <!-- Quick Cache is NOT caching this page, because <code>$_GET</code> contains query string data. The current configuration says NOT to cache GET requests with a query string. -->
       ```
   
 * [@aminabbasian](https://wordpress.org/support/users/aminabbasian/) What version
   of Quick Cache are you running please?
 *  Thread Starter [aminabbasian](https://wordpress.org/support/users/aminabbasian/)
 * (@aminabbasian)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cache-warning/#post-5752827)
 * Hey Jas,
 * I am using Quick Cache Version 141001 on WP 4.0
 * Thanks
 *  Plugin Author [JasWSInc](https://wordpress.org/support/users/jaswsinc/)
 * (@jaswsinc)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cache-warning/#post-5752828)
 * Thank you! 🙂 I suggest upgrading to the latest release of Quick Cache, just 
   to make sure that everyone is on the same page here. The latest release at this
   time is v150129.
 * That won’t solve the problem though. The reason this occurs? The AJAX response
   is coming back with a `Content-Type: text/html; charset=UTF-8` header. So Quick
   Cache thinks this is “HTML”, when in fact your JavaScript routines are treating
   it as plain text.
 * So there are two possible solutions:
 * 1. Change the AJAX response so that it sends back `Content-Type: text/plain; 
   charset=UTF-8`.
    2. Or, update your JavaScript routines so that you treat the
   response as HTML; i.e. so that HTML comments are treated as such; i.e., not as
   part of the plain text.
 * I’m opening an issue about this, so that we can try to work around this problem
   in a future release. See: [https://github.com/websharks/quick-cache/issues/410](https://github.com/websharks/quick-cache/issues/410)
 *  Thread Starter [aminabbasian](https://wordpress.org/support/users/aminabbasian/)
 * (@aminabbasian)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cache-warning/#post-5752829)
 * Thank you 🙂
 * I will try the two potabilities asap.
 * In the meantime is there away in which I can hide this error?
 *  Plugin Author [JasWSInc](https://wordpress.org/support/users/jaswsinc/)
 * (@jaswsinc)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cache-warning/#post-5752832)
 * The quickest way to hide it would be:
 * Option 2 that I listed above.
 * Or, to use a `.replace()` call in JavaScript. That’s a bit hackety though, and
   if you’re in the JS code already, it would probably be easier just to correct
   the way you handle the AJAX response. For instance, if you’re using jQuery… instead
   of doing `$([selector]).text(response)`, do `$([selector]).html(response)`.

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

The topic ‘Cache Warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/quick-cache_efefef.svg)
 * [Quick Cache (Speed Without Compromise)](https://wordpress.org/plugins/quick-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-cache/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [JasWSInc](https://wordpress.org/support/users/jaswsinc/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/cache-warning/#post-5752832)
 * Status: not resolved