<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>ProductCart Shopping Cart Software Forums : Difference? Response.AddHeader vs CacheControl</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Using ProductCart : Difference? Response.AddHeader vs CacheControl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 06:41:03 +0000</pubDate>
  <lastBuildDate>Fri, 28 Feb 2014 23:57:41 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.productcart.com/RSS_post_feed.asp?TID=5811</WebWizForums:feedURL>
  <image>
   <title><![CDATA[ProductCart Shopping Cart Software Forums]]></title>
   <url>https://forum.productcart.com/forum_images/pc_logo_50.png</url>
   <link>https://forum.productcart.com/</link>
  </image>
  <item>
   <title><![CDATA[Difference? Response.AddHeader vs CacheControl : I&amp;#039;m trying to optimize our...]]></title>
   <link>https://forum.productcart.com/difference-response-addheader-vs-cachecontrol_topic5811_post21855.html#21855</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1159">Brett</a><br /><strong>Subject:</strong> 5811<br /><strong>Posted:</strong> 28-February-2014 at 11:57pm<br /><br />I'm trying to optimize our pages so they'll load faster. Chrome's "Audit" thing wants me to enable caching. I was able to do so one one page by changing:<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />Response.CacheControl = "no-cache"<br /></pre></td></tr></table>...to...<br /><table width="99%"><tr><td><pre class="BBcode"><br />Response.CacheControl = "private"<br /></pre></td></tr></table><br />However, just about every file in ProductCart has these lines at the top:<br /><table width="99%"><tr><td><pre class="BBcode"><br />&lt;% response.Buffer=true<br />Response.Expires = -1<br />Response.Expiresabsolute = Now() - 1<br />Response.AddHeader "pragma","no-cache"<br />Response.AddHeader "cache-control","private"<br />Response.CacheControl = "no-cache"<br />%&gt;<br /></pre></td></tr></table><br />It seems like AddHeader "cache-control" and CacheControl "no-cache" are redundant. Is there any reason for them both being here? Do they do something different? If I want to enable caching, which one should I change / remove?<br /><br />Most importantly, will it screw anything up if I enable caching? Worst case scenario I can think of is we remove a product from the storefront or change the price, and a customer sees the old info.]]>
   </description>
   <pubDate>Fri, 28 Feb 2014 23:57:41 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/difference-response-addheader-vs-cachecontrol_topic5811_post21855.html#21855</guid>
  </item> 
 </channel>
</rss>