W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2003

Problem with cache and max-age

From: Naldo Alcalde H. <listas_nalcalde@hotmail.com>
Date: Wed, 18 Jun 2003 12:34:44 -0500
To: "Libwww List" <www-lib@w3.org>
Message-ID: <Law15-DAV52dEC4JMB0000459ed@hotmail.com>
Hi friends, I've a problem and need to know if can you help me, thanks in advance. I used the libwww in order to implement the cache features, but it don't work correctly because when the page has expired, it continue using the cached file and don't use the remote file. I set the request cache options as follow:

HTRequest_setReloadMode(m_request, HT_CACHE_VALIDATE );
HTCacheMode_setExpires(HT_EXPIRES_AUTO);
HTRequest_addCacheControl(m_request, "must-revalidate", ""); 
HTRequest_addCacheControl(m_request, "cache-control", "max-age");
HTRequest_addCacheControl(m_request, "max-age", "30"); //seconds

However, it don't work :-( 

Thanks,

Naldo Alcalde H.

  
Received on Wednesday, 18 June 2003 13:32:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:43 GMT