Title: HEAD requests for disk:basic page caching
Last modified: May 23, 2017

---

# HEAD requests for disk:basic page caching

 *  [dnljms](https://wordpress.org/support/users/dnljms/)
 * (@dnljms)
 * [9 years ago](https://wordpress.org/support/topic/head-requests-for-diskbasic-page-caching/)
 * On my website the Link http header’s value is duplicated for HEAD requests for
   cache hits using disk:basic page caching, it looks something like this:
 * `Link: <http://example.com/wp-json/>; rel="https://api.w.org/", <http://example.
   com/>; rel=shortlink, <http://example.com/wp-json/>; rel="https://api.w.org/",
   <http://example.com/>; rel=shortlink`
 * This doesn’t happen for GET requests. Looking at the code, I think the issue 
   is that `process_cached_page_and_exit` in `PgCache_ContentGrabber.php` returns
   for HEAD requests, rather than exits. Changing it to exit seems to fix the issue.
 * To reproduce the issue:
 * 1. Turn on disk:basic page caching
    2. Fetch to fill the cache: curl [http://example.com/](http://example.com/)
   > /dev/null 3. HEAD request: curl -I [http://example.com/](http://example.com/)

The topic ‘HEAD requests for disk:basic page caching’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [dnljms](https://wordpress.org/support/users/dnljms/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/head-requests-for-diskbasic-page-caching/)
 * Status: not resolved