View Single Post

  #2 (permalink)  
Old 06-27-2003
Daniel Griscom
 
Posts: n/a
Default Re: Flash-Apache conflict: error 416?

In article <3ae246c1.0306261518.4ffffd30@posting.google.com >,
jring@web.de (Joachim Ring) wrote:

> i think for this behaviour to occur the flash plugin needs to be
> fixed, as it is the one behaving erratically.


So you think it's Flash which is misbehaving. Good to know.

> > To keep the code 416 from happening, it seems I either have to persuade
> > Flash to stop getting funky with its request, or persuade Apache to be
> > more tolerant. Using the first approach, I added a "?randomVar=XXXXX"
> > suffix to each request to make Flash see each fetch as a new item. This
> > worked, except that Flash dutifully started caching all these
> > "different" files, ending with megabytes of useless cached files, which
> > is a memory and performance problem on a poor little palmtop. So, now
> > I'm stumped.

>
> send a Cache-Control: no-cache header with each of the randomized
> requests, if you can bear the bandwidth hit.


So, I'd use "Header add Cache-Control: no-cache" in the relevant
location of my conf file, right?


As an alternative, is there any way I could rewrite the offending
request? Remember that it is this:

> GET /flash/main.swf HTTP/1.1\r\n
> Referer: http://server/flash/main.swf\r\n
> Range: bytes=2964-\r\n
> Unless-Modified-Since: Mon, 23 Jun 2003 13:51:51 GMT\r\n
> If-Range: "11f8ea-b94-c6c42bc0"\r\n
> User-Agent: Shockwave Flash\r\n
> Host: server\r\n
> \r\n


I believe I'd need to do the following:
- Delete the "Range:" header
- Delete the "If-Range:" header
- Change the "Unless-Modified-Since" header to an "If-Modified-Since"
header, with the same date.

The first two can be done using "RequestHeader unset": is there a way to
do the third? (This, of course, assumes Flash will know what to do if it
gets a 304 response.)

> or better still for everybody except your nerves, complain to
> macromedia until they fix it.


In my decade of working with Macromedia, I've found that their tech
support department goes into turbo-denial mode whenever someone suggests
that their software might have a bug. For an example, go to
groups.google.com and search for "Shockwave 8.5 installers won't upgrade
older Flash under Win98 SE". (I'll give them a shot anyway.)


Many thanks,
Dan

--
Daniel T. Griscom Work: (781) 665-0053
Suitable Systems Fax: (781) 665-7106
152 Cochrane Street griscom@suitable.com
Melrose, MA 02176-1433 http://www.suitable.com/