[Catalyst] Session::State::URI and static css/js

Fayland Lam fayland at gmail.com
Sun Oct 15 10:01:05 CEST 2006


islue wrote:
> i think you can do something in Static::Simple's config.
> C::P::S::State::URI only ignore binary contents now.

I just redefine the sub

sub _session_rewriting_html_tag_map {
     return {
         a      => "href",
         form   => "action",
#        link   => "href",
#        img    => "src",
#        script => "src",
     };
}

and get what I want. thanks any way.

> 
> 2006/10/8, fayland <fayland at gmail.com>:
>> hey, all
>> we use something like this to get full session functions provided by
>> nothingmuch (thanks a lot):
>>
>> use Catalyst qw/
>>     -Debug
>>     Config::YAML
>>     Static::Simple
>>     Authentication
>>     Authentication::Store::DBIC
>>     Authentication::Credential::Password
>>     Session::DynamicExpiry
>>     Session
>>     Session::Store::DBIC
>>     Session::State::URI
>>     Session::State::Cookie
>> ...
>>
>> but the js/css link in the html page becomes something like:
>>
>> /js/prototype.js?sessionid=ec02016c7dd66d52fa1fff5bbac9d1d6
>>
>> Session::State::URI sub rewrite_html_with_session_id rewrite ALL link in
>> the html. but indeed the js/css don't need the sessionid.
>>
>> is there a way to avoid it? or can I config like Static::Simple?
>> Best Regards,
>>
>> --
>> Fayland Lam // http://www.fayland.org/
>>
>>
>> _______________________________________________
>> List: Catalyst at lists.rawmode.org
>> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
>> Searchable archive: http://www.mail-archive.com/[email protected]/
>> Dev site: http://dev.catalyst.perl.org/
>>
> 
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
> 




More information about the Catalyst mailing list