CCXML 1.0-W3C Development Guide Home  |  Frameset Home

  B: Debugging Techniques  |  TOC  |  Debugging Techniques  

Caching Tips and Techniques

Document caching seems to be a very misunderstood issue when it comes to the development process; having a cached version of a page that you are developing can be very frustrating at times, so let's run over the basics to cache control. Firstly, the absolute best way to control caching is via your server settings. If you are hosting on your own webserver, then you have it made...all you need to do is to carefully read the Cache Manager API in order to learn the correct procedure for setting up your server's caching headers. Not sure if it's set up properly? Point your browser to this cacheability tool, and enter in the URL of your application to make certain that you have your Expires and cache-control headers set properly.

However, you might not have full control over the headers that your webhost returns, so we have a few other possibilities. If your webhost supports any server-side languages such as ASP, ColdFusion, Perl, etc, we can simply add explicit cache control headers within your code:

Disabling caching in Active Server Pages

<% response.expires = -1
response.CacheControl = "no-cache"
%><? xml version="1.0" ?>


Disabling caching in PHP

<?php
header('Cache-Control: no-cache');
print('<?xml version="1.0" encoding="UTF-8" ?>');
?>


Disabling caching in Cold Fusion

<cfheader name="Cache-Control" value= "no-cache">
<cfheader name="Expires" value="#Now()#"><? xml version="1.0" ?>





  ANNOTATIONS: EXISTING POSTS
romilly1
3/22/2010 1:59 AM (EDT)
The 'caching tutorial' link (i.e. http://community.voxeo.com/library/caching/) is not working.
voxeoTonyT
3/22/2010 3:18 AM (EDT)
Hello,

Thank you for pointing this out to us.  I have put in a request to get that link taken care of.  We shall notify you as soon as that link has been corrected.  If there is anything else we can help you with please do not hesitate to contact us.

Regards,

Tony Taveras
Customer Engineer
Voxeo Support

login
  B: Debugging Techniques  |  TOC  |  Debugging Techniques  

© 2012 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site