I’m trying to generate a SMIL file for a streaming server to read and they responded with this:
The problem here is the dynamic nature of your SMIL files.
It appears the HTTP request HEAD does not return any information about the file in question. As a basic HTTP transaction
Connected to example.com
Escape character is ‘^]’.
HEAD http://example.com/feeds/smil/573.smil HTTP/1.0HTTP/1.0 200 OK
Date: Tue, 07 Aug 2012 13:52:14 GMT
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r
Set-Cookie: exp_last_visit=1028987534; expires=Wed, 07-Aug-2013 13:52:14 GMT; path=/
Set-Cookie: exp_last_activity=1344347534; expires=Wed, 07-Aug-2013 13:52:14 GMT; path=/
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Tue, 07 Aug 2012 13:52:14 GMT
Pragma: no-cache
MS-Author-Via: DAV
Cache-Control: public
Vary: Accept-Encoding
Connection: close
Content-Type: text/xmlFor your SMIL in the examples below , which is http://example.com/feeds/smil/573.smil , no Content-Length is returned.
MediaCache uses the HTTP HEAD command to determine if the asset being requested is available and its length before attempting to get the content.
You will need to change your code to support the HEAD command so it returns the correct Content-Length for the content in question.
As a working example you can see below
Connected to 10.1.1.201.
Escape character is ‘^]’.
HEAD /demo/demo1/test.smil HTTP/1.0HTTP/1.1 200 OK
Date: Tue, 07 Aug 2012 13:53:29 GMT
Server: Apache/2.2.21 (Unix) PHP/5.3.8
Last-Modified: Tue, 07 Aug 2012 13:50:37 GMT
ETag: “4e160-2ae-4c6ad476fe540”
Accept-Ranges: bytes
Content-Length: 686
Connection: close
Content-Type: application/smil+xmlThe Content-Length is returned and this SMIL file goes into the cache successfully.
Can EE do this?