I imagine you would want some easy way to set a cache duration, probably
even a default cache duration, and have that then be translated into a time
automatically on render/reply. The development specific behavior would
likely then be to disable caching during development (when in development
mode) so that you see the results of modifications quickly.
On Wednesday, June 15, 2016 at 5:01:52 PM UTC-5, Luc Didry wrote:
>
> mercredi 15 juin 2016, 14:38:23 CEST sri wrote:
> > Oh, i was expecting something a little more elaborate, with different
> > defaults for development and production mode, optimized for all the
> > browsers that are currently being used. This doesn't really add anything
> > the after_static hook can't do already.
>
> I see what you say with "different defaults for development and production
> mode"[1],
> but I don't with "optimized for all the browsers".
>
> Do you have an example?
>
> [1] like:
> $static->headers->production({'Expires' => 'Fri, 08 Jul 2016 19:54:46
> GMT'})
> $static->headers->development({})
> Is that what you think of? I'm not really sure, since it can be done
> with after_static hook too
> --
> Luc
> http://www.fiat-tux.fr/
> Internet n'est pas compliqué, Internet est ce que vous en faites.
>
>
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.