Also see <a href="http://wiki.catalystframework.org/wiki/adventcalendararticles/2007/11-Making_your_Catalyst_App_Cache-friendly">http://wiki.catalystframework.org/wiki/adventcalendararticles/2007/11-Making_your_Catalyst_App_Cache-friendly</a> for a neat approach to setting browser-cache expiry info.<div>
<br><br><div class="gmail_quote">On Tue, Mar 1, 2011 at 5:49 AM, John M. Dlugosz <span dir="ltr"><<a href="mailto:wxju46gefd@snkmail.com">wxju46gefd@snkmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
That's only part of it. It should also answer status 304, and set
headers to tell the client not to even bother asking again any time
soon.<div class="im"><br>
<br>
On 3/1/2011 4:45 AM, Jorge Gonzalez <a href="http://jorge.gonzalez-at-daikon.es" target="_blank">jorge.gonzalez-at-daikon.es</a>
|Catalyst/Allow to home| wrote:
</div><blockquote type="cite">
<pre><div class="im">So what you need then is a templating system which caches the generated content
from the templates and then when asked for it again later, it checks if the
template has been changed, and if it hasn't (so the content generated will be
the same if executed), answer the browser with a "Content not changed" instead
of sending the content.
Looks like you might need Template::Plugin::Cache:
<a href="http://search.cpan.org/~perrin/Template-Plugin-Cache-0.13/Cache.pm" target="_blank">http://search.cpan.org/~perrin/Template-Plugin-Cache-0.13/Cache.pm</a>
</div><a href="http://search.cpan.org/%7Eperrin/Template-Plugin-Cache-0.13/Cache.pm" target="_blank"><http://search.cpan.org/%7Eperrin/Template-Plugin-Cache-0.13/Cache.pm></a><div class="im">
Specially interesting the "Any gotchas..." section of the docs :-)
Regards
J.
        */Jorge González Villalonga/*
Director Técnico
*/DAIKON Integración y Desarrollo S.L./*
Telf: (+34) 91 188 08 28
Fax: (+34) 91 632 65 42
*<a href="http://www.daikon.es" target="_blank">www.daikon.es</a>*
El 01/03/11 10:23, John M. Dlugosz escribió:
> Say I want to use TT in the .css, so (for example) I can name my colors and
> other repeated content easily.
>
> I'm assuming that I can define a Path of some kind on a rule to serve those.
> Any recipes to share?
> More critically, I want the browser to know that it doesn't have to keep
> re-fetching it on every view of every page. How would I manage that?
>
> _______________________________________________
> List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a>
> Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a>
> Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a>
> Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a>
</div></pre>
<pre><fieldset></fieldset>
_______________________________________________
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><div class="im">
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a>
</div></pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>The first step towards getting somewhere is to decide that you are not going to stay where you are. -- J.P.Morgan<br>
</div>