- From: Eric <eric@onramp.net>
- Date: Wed, 18 Mar 1998 17:28:22 -0500 (EST)
- To: www-talk@w3.org, mailing@onramp.net, list@onramp.net
I'm trying to implement banner ads in C. They rotate fine on most web browsers but I cannot find a way to get IE 3.x and Netscape 2.x not to cache it (it doesn't execute the link on subsequent calls). I also experience errors everytime I try to implement status codes so I have been unable to try that. Here is what I am trying: /* printf("HTTP/1.0 201 Created\r\n");*/ printf("Expires: Mon, 2 Mar 1998 15:00:00 GMT\r\n"); printf("Age: 1\r\n"); printf("Cache-Control: max-age=0\r\n"); printf("Cache-Control: no-cache\r\n"); printf("Warning: 10 Response stale\r\n"); printf("Pragma: no-cache\r\n"); printf("LOCATION: %s\r\n\r\n",img); where the last line give it the URL of the image to display. Most browsers will call the program everytime the web page is reloaded but IE 3.x and Netscape 2.x cache it regardless. I would greatly appreciate ideas as I have tried just about every header command, and also cannot get status codes to work. (Line 1 was one attempt at that - it errors every time I uncomment it - and I have also tried Status: 201 OK\r\n). If you know of other source to contact I would also apprecaite that. Sincerely, Eric Finestead eric@onramp.net (please reply here)
Received on Wednesday, 18 March 1998 17:28:59 UTC