[pLog-svn] resserver usage

Reto Hugi plog at hugi.to
Tue Oct 3 21:44:00 GMT 2006


On 03.10.2006 23:02, Matt wrote:
>> I was also considering using a 30x redirect but I am not sure what
>> will happen with the file name. What I mean is that if somebody
>> requests /resource/myalbum/myfile.jpg and resserver.php does a
>> redirect to /gallery/44/44-23.jpg, how will the browser address look
>> like? What name will the browser suggest when saving the file?
>> myfile.jpg or 44-23.jpg? I guess 44-23.jpg would be kind of ugly,
>> wouldn't it? But if we managed to keep the original file name, this
>> probably is the easiest option of all.
>>
> 
> You could have a full page iframe in the 30x redirected page to hide the
> "ugly" filename ;)
> 

creative, but not an option in case of, say, archives and other files
not displayed inline. :/

unfortunately I don't think there's a solution to this problem. the
filename will be 44-23.jpg or .zip or .doc etc.

another, but IMO not useful option (I'm just brainstorming):
what if lifetype is redirecting to another, more light weight script
that accepts the nice filename/ugly filename mapping and delivers the
file to the browser?
There would still be a 30x redirect and LT is done, but the client gets
a nice filename... efficiency? don't know...


More information about the pLog-svn mailing list