[Seaside] Zinc as static file server

Paul DeBruicker pdebruic at gmail.com
Sat May 12 00:57:47 UTC 2012


I added  the ability to specify Cache-Control headers for static files 
served by Zinc and added an API to the ZnZincStaticServerAdaptor that 
allows you to use the defaults or provide a custom specification.




On 04/20/2012 04:56 PM, Paul DeBruicker wrote:
> Hi Sven,
>
> I don't have a blog and I'm not doing anything sophisticated with it. It
> just seems an easier way to serve static files than messing with Apache
> or Nginx for development purposes. But I will try find the time to write
> something up.
>
> Thanks for your upgrades. I modified the interface so now you can do:
>
> ZnZincStaticServerAdaptor startOn: 8080 andServeFilesFrom: '/var/www/'
>
>
>
> I uploaded the revised Zinc-Seaside package.
>
>
> Paul
>
>
>
> On 04/20/2012 02:09 AM, Sven Van Caekenberghe wrote:
>> Hi Paul,
>>
>> On 20 Apr 2012, at 02:13, Paul DeBruicker wrote:
>>
>>> Yes. There is a way.
>>>
>>> I uploaded some changes to
>>> http://www.squeaksource.com/ZincHTTPComponents
>>> that allow Zinc to serve both Seaside requests and static files from the
>>> same server adaptor.
>>>
>>>
>>> Let me know if they're inappropriate for the ZincHTTPComponents archive
>>>
>>>
>>> Paul
>>
>> Thanks for this contribution, I think it is really useful.
>>
>> I did some merging and some small changes (like making
>> wwwRootDirectory a variable).
>> So it would be best to update.
>>
>> Do you have a blog or could you pubish a short writeup of how to use
>> this as you envisioned it ?
>>
>> Thanks again.
>>
>> Regards,
>>
>> Sven
>>
>>
>> --
>> Sven Van Caekenberghe
>> http://stfx.eu
>> Smalltalk is the Red Pill
>>
>>
>>
>>
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



More information about the seaside mailing list