Re: httpd cache in wsx



On Wed, 01 Aug 2007 09:27:45 +0200, Haris Zukanovi? <haris@xxxxxx>
wrote:

Hi ppl,


I have following content_137.wsx on my streaming server
<?wsx version="1.0"?>
<smil>
<media
src="httpd://backend/backend.php/content/stream/id/137/%QueryString%"/>
</smil>



Everything works ok, but after a while (which can also be days, but can
also be hours) when I try to stream, WMS suddenly decides it will not
longer request the dynamic source
src="httpd://backend/backend.php/content/stream/id/137/%QueryString%"/>
and seems like it is using some cached version of this response
I have verified this by tailing the logs of backend webserver, no
request is recorded when this happends.

The script at httpd://backend/backend.php/content/stream/id/137/ is
configured to respond with no-cache headers, here they are:

REPONSE: HTTP/1.0 200 OK
Date: Wed, 01 Aug 2007 13:24:02 GMT
Server: Apache/2.2.3 (Ubuntu) PHP/5.2.1
X-Powered-By: PHP/5.2.1
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0,
Pragma: no-cache,
Etag: 6ee0731be4cc838013bbcd42af96a5be
Content-Length: 207
Connection: close
Content-Type: text/html; charset=utf-8


Any ideas?
Where would I check to verify this theory?


It's going to be hard to diagnose if it's an intermittent problem.

Once it definitely fails, you might be able to use Fiddler http proxy
running on the server to debug the request and response.
http://www.fiddler2.com/Fiddler2/version.asp

Does the ETag always change ? It should be distinct (eg an MD5) for
any change in the content response, or the httpd plugin really might
cache the response if it sees the same ETag. it's used by IE, and
presumably WinInet, where Firefox I think uses the last-modified
header).

You're not sending last-modified at all, but if it's truly dynamically
generated, it probably should have that header. That will be relevant
for HTTP1.1, it looks above like the media server requested using
HTTP1.0 (which is the same as the media encoder http server delivers)

There's a discussion of the subtleties of cacheing based on
last-modified, if-modified-since and other similar headers here :
http://fishbowl.pastiche.org/2002/10/21/http_conditional_get_for_rss_hackers

In your example above, you seem to be sending text/html content type
(default for PHP), perhaps you could try one of video/x-ms-asf ,
application/smil or application/xml instead just to be sure.

I also noticed a trailing comma on your Pragma: no-cache,
which is probably unrelated but should be fixed up.

HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2007
http://mvp.support.microsoft.com/mvpfaqs
.



Relevant Pages

  • Re: NotificationSampleWebDav-Monitor OWA Inbox
    ... re-login or update your cookie with each response you get... ... Warning: Exiting Action with an exception: The remote server returned an ... // Create request object and assign credentials. ... Stream newStream = Request.GetRequestStream; ...
    (microsoft.public.exchange.applications)
  • Re: Problems with access to a web page
    ... Server: Apache ... Connection: close ... Look what I get now when I send the exact same request ... and got exactly the same 0 length response ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: BASIC authentication Issues with IE - Part II - Solved but WHY?
    ... REQUEST and RESPONSE logging below to show you whats going on. ... using my local machine web server. ... However, at this point I am logged in and I have lots of links, one is a "who is online" link client?who.wcn, which I will open this up in a second window. ...
    (microsoft.public.inetserver.iis.security)
  • Re: HTTP header processing sequence
    ... Initially it sends the request for the html source, and if there are any more objects to request it does so, and then wait for the server to reply sending back the requested data using appropriate headers. ... How does the (browser) client know how to match up multiple received responses from the server with GET-requests, as this does not appear to be sequential. ... So the association of request and response is no problem. ...
    (microsoft.public.win32.programmer.networks)
  • Re: NotificationSampleWebDav-Monitor OWA Inbox
    ... when you send your authentication cookies along a request in the ... the response should also contain new cookies. ... Can you guide me how can I update the cookie with new response. ... Warning: Exiting Action with an exception: The remote server returned ...
    (microsoft.public.exchange.applications)

Loading