<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Monie Studios &#187; control</title>
	<atom:link href="http://www.moniestudios.com/tag/control/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.moniestudios.com</link>
	<description>So much to learn, so little time!</description>
	<lastBuildDate>Fri, 21 Oct 2011 11:30:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>ASP Cache Control</title>
		<link>http://www.moniestudios.com/tutorials/asp_cache/</link>
		<comments>http://www.moniestudios.com/tutorials/asp_cache/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 05:09:29 +0000</pubDate>
		<dc:creator>Monie</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[control]]></category>

		<guid isPermaLink="false">http://www.moniestudios.com/?p=10</guid>
		<description><![CDATA[This simple tutorial will show you how you be able to control you page cache with Active Server Page (ASP).]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t allow your page to be cached. Why? You might want to prevent users from seeing old content. Another big concern is when someone is filling out forms. You really don&#8217;t want the pages cached because if they are, credit card numbers and addresses and all kinds of stuff can be gathered from the cached page. Here is how ASP do it!</p>
<h2>Cache No More!</h2>
<pre class="brush: vb; title: ; notranslate">
&lt;% @LANGUAGE=&quot;VBSCRIPT&quot; %&gt;
&lt;%
Option Explicit
Response.Buffer = True

'Make sure this page is not cached by the browser!
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader &quot;pragma&quot;,&quot;no-cache&quot;
Response.AddHeader &quot;cache-control&quot;,&quot;private&quot;
Response.CacheControl = &quot;No-Store&quot;

'Description:
#07 That sets an immediate expiration on the file. Thus it dies the moment is it born.
#08 Says &quot;Expire this page 24 hours ago&quot;, allowing for time differences, rather than specify a static date.
#09 Tell the browser not to cache the page.
#10 Better safe than sorry!
#11 Tell the browser not to store anything from this page.
%&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.moniestudios.com/tutorials/asp_cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

