Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Killing Cached pages (I think) 1

Status
Not open for further replies.

TimRHSD

Programmer
Apr 18, 2002
35
US
I am a newbie so I don't know if this is my problem or if I am just missing a setting. My program presents a question with a <cfloop> for the answers. The first page presents correctly.
<!-- Display the Question -->
1) What color is the sky?
<!-- Now display the answers. -->
<pre><input type=&quot;radio&quot; name=&quot;ans_id&quot;value=&quot;1&quot;>blue</pre>
<pre><input type=&quot;radio&quot; name=&quot;ans_id&quot; value=&quot;2&quot;> green</pre>
<pre><input type=&quot;radio&quot; name=&quot;ans_id&quot; value=&quot;3&quot;> red</pre>
<pre><input type=&quot;radio&quot; name=&quot;ans_id&quot; value=&quot;4&quot;> yellow</pre>

The second and further pages display the older version of my development. The same page is being used to format new pages. How do I fix these?

<!-- DIsplay the Question -->
2) What is the sum of 1 + 1?
<!-- Now display the answers. This page should really show just one answer.-->
<pre> <input type=&quot;radio&quot; ans_id=5> 1</pre>
<pre> <input type=&quot;radio&quot; ans_id=6> 2</pre>
<pre> <input type=&quot;radio&quot; ans_id=7> 3</pre>
<pre> <input type=&quot;radio&quot; ans_id=8> 4</pre>

Any help would be most highly appreciated as this is driving me nuts. If you need the original code 'questlist.cfm' let me know.

Tim
 
Put this at the top of your pages to force them to be cached each time...see if that works.

<META http-EQUIV=&quot;Expires&quot; CONTENT=&quot;Mon, 01 Jan 1970 23:59:59 GMT&quot;>
<CFHEADER NAME=&quot;Pragma&quot; VALUE=&quot;no-cache&quot;>
<CFHEADER NAME=&quot;Expires&quot; VALUE=&quot;Now()&quot;>
<CFHEADER NAME=&quot;cache-control&quot; VALUE=&quot;no-cache, no-store, must-revalidate&quot;>
 
Thanks JL! That worked. Now I can start glueing my hair back onto my scalp. :)

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top