Body: <ul>
  <li>I'm using a contribution shortcode in a Wordpress page. I need the HTML/XML request to never load from cache for both logged-in and anonymous users.</li>
  <li>In W3 Total Cache, I have the &quot;Don't cache pages for logged in users&quot; checked and the page is excluded from caching in the &quot;Never cache the following pages:&quot; field.</li>
  <li>In spite of this config, once the page has been loaded as a logged in user, all subsequent loads from back/forward browser buttons are from disk cache.</li>
  </ul>
  <p>I've tried a combination of configs and various Wordpress header PHP commands, all to no avail.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-01-11T19:52:42.713Z
Comments.Text: How does this have anything to do with CiviCRM? Is it only civicrm pages?
Comments.UserDisplayName: Alan Dixon
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-01-22T19:14:30.487Z
Comments.Text: @AlanDixon, it's not limited to civicrm pages, but nearly all civicrm pages when embedded and loaded from cache will not function correctly.
Comments.UserDisplayName: dsmith63
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-01-24T15:56:31.533Z
Comments.Text: When you assert "all subsequent loads from back/forward browser buttons are from disk cache" - are you saying this based on your browser experience, or do you have evidence from the server itself? i.e. are you sure it's not just your web browser caching things? Or does your server have another level of caching (e.g. forward proxy)? If it's not actually limited to CiviCRM, then I doubt this is a civicrm issue, and a wordpress forum would be a better place to find a solution.
Comments.UserDisplayName: Alan Dixon
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-01-24T17:38:56.523Z
Comments.Text: @AlanDixon Fair enough, I'll try a different forum.
Comments.UserDisplayName: dsmith63
Tags: <wordpress><php><cache><header-footer><caching>
Title: Why does W3 Total Cache serve cached pages to logged in users (Wordpress)?
ThreadText: # Why does W3 Total Cache serve cached pages to logged in users (Wordpress)?
  
  (Asked by: username_0 on 2022-01-05)
  
  * I'm using a contribution shortcode in a Wordpress page. I need the HTML/XML request to never load from cache for both logged-in and anonymous users.
  * In W3 Total Cache, I have the "Don't cache pages for logged in users" checked and the page is excluded from caching in the "Never cache the following pages:" field.
  * In spite of this config, once the page has been loaded as a logged in user, all subsequent loads from back/forward browser buttons are from disk cache.
  
  I've tried a combination of configs and various Wordpress header PHP commands, all to no avail.
  
  **Tags:** wordpress, php, cache, header-footer, caching
  
  > **Comments:**
  > **username_1**: How does this have anything to do with CiviCRM? Is it only civicrm pages?  
  > **username_0**: @username_1, it's not limited to civicrm pages, but nearly all civicrm pages when embedded and loaded from cache will not function correctly.  
  > **username_1**: When you assert "all subsequent loads from back/forward browser buttons are from disk cache" - are you saying this based on your browser experience, or do you have evidence from the server itself? i.e. are you sure it's not just your web browser caching things? Or does your server have another level of caching (e.g. forward proxy)? If it's not actually limited to CiviCRM, then I doubt this is a civicrm issue, and a wordpress forum would be a better place to find a solution.  
  > **username_0**: @username_1 Fair enough, I'll try a different forum.  
  
  ---
  
  ## 0 answers
  
  