W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 1997

Re: Problems with GIF files on FileResource objects.

From: Joseph M. Futrelle <futrelle@ncsa.uiuc.edu>
Date: Wed, 5 Mar 1997 12:34:09 -0600 (CST)
Message-Id: <199703051834.MAA05677@pecos.ncsa.uiuc.edu>
To: www-jigsaw@w3.org

...
>      This is the problem I have of creating a fileresource and then 
>      assigning it one type of .GIF in it's attributes and then changing it 
>      to another type sometime later.  It doesn't show up when changed 
>      unless I delete the FileResource and then re-create it.
...
>      This is one of the only attribute inconsistencies I can find so far. 
>      does it have something to do with object persistence?

Using the editor to change the content-type of a FileResource immediately
changes the content-type that Jigsaw sends out to the browser. To make
absolutely sure Netscape isn't caching your page, exit it and restart.
Or better yet, telnet to your server and type in a HEAD request by hand.

However, editing the content-type of an extension template only
affects FileResources that are created after the change is made. Which
means that you either have to reindex the DirectoryResources
containing the FileResources whose content-type you want to change, or
edit their content-types by hand, or remove them and let the resource
factory recreate them with the new content-type when the next request
comes in.

-- 
Joe Futrelle
HTTP Server Development, Joule/Hacksaw Group
National Center for Supercomputing Applications
futrelle@ncsa.uiuc.edu
(217) 265-0296
Received on Wednesday, 5 March 1997 13:34:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:26 GMT