You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by Thomas Andraschko <an...@gmail.com> on 2013/02/14 16:16:00 UTC

Re: [JSF][Proposal] ViewMetaData for HTTP caching

Hi Mark,

somehow i missed your answers.
I would only like to set the expires headers the for request of this view.

Regards,
Thomas

2012/12/17 Mark Struberg <st...@yahoo.de>

> Just out of curiosity:
>
> What and at which level do you like to cache?
>
> * do you like to cache the rendered html?
> * do you 'intercept' and proxy the response and return the cached html for
> every request?
> * do you only set the 'expires' http header for the generated sites?
>
>
>
> LieGrue,
> strub
>
>
>
> ----- Original Message -----
> > From: Thomas Andraschko <an...@gmail.com>
> > To: deltaspike-dev@incubator.apache.org
> > Cc:
> > Sent: Monday, December 17, 2012 5:37 PM
> > Subject: [JSF][Proposal] ViewMetaData for HTTP caching
> >
> > Hi,
> >
> > sometimes it's required or possible to cache some views.
> > We implemented a CODI ViewConfig based solution for this.
> >
> > Here is a prototype: https://gist.github.com/aab5992ab4cf5d22b2d3
> >
> > What do you think? Is this useful for other users too and can we maybe
> add
> > it to DeltaSpike?
> >
> > @Gerhard
> > Would it be possible to add a new method
> >          <T extends Annotation> T getUniqueMetaData(Class<T> target)
> > to ViewConfigDescriptor?
> > Many custom ViewMetaData's are unique and so we must not create a
> ArrayList
> > each time.
> >
> >
> > Regards,
> > Thomas
> >
>

Re: [JSF][Proposal] ViewMetaData for HTTP caching

Posted by Jason Porter <li...@gmail.com>.
I don't see an issue with this.


On Fri, Aug 2, 2013 at 3:07 AM, Thomas Andraschko <
andraschko.thomas@gmail.com> wrote:

> Any comments?
> Sometimes it's really usefull to cache "static" views and it's the easiest
> way via type safe view configuration.
> I could also provide it via pull request.
>
>
> 2013/2/14 Thomas Andraschko <an...@gmail.com>
>
> > Hi Mark,
> >
> > somehow i missed your answers.
> > I would only like to set the expires headers the for request of this
> view.
> >
> > Regards,
> > Thomas
> >
> >
> > 2012/12/17 Mark Struberg <st...@yahoo.de>
> >
> >> Just out of curiosity:
> >>
> >> What and at which level do you like to cache?
> >>
> >> * do you like to cache the rendered html?
> >> * do you 'intercept' and proxy the response and return the cached html
> >> for every request?
> >> * do you only set the 'expires' http header for the generated sites?
> >>
> >>
> >>
> >> LieGrue,
> >> strub
> >>
> >>
> >>
> >> ----- Original Message -----
> >> > From: Thomas Andraschko <an...@gmail.com>
> >> > To: deltaspike-dev@incubator.apache.org
> >> > Cc:
> >> > Sent: Monday, December 17, 2012 5:37 PM
> >> > Subject: [JSF][Proposal] ViewMetaData for HTTP caching
> >> >
> >> > Hi,
> >> >
> >> > sometimes it's required or possible to cache some views.
> >> > We implemented a CODI ViewConfig based solution for this.
> >> >
> >> > Here is a prototype: https://gist.github.com/aab5992ab4cf5d22b2d3
> >> >
> >> > What do you think? Is this useful for other users too and can we maybe
> >> add
> >> > it to DeltaSpike?
> >> >
> >> > @Gerhard
> >> > Would it be possible to add a new method
> >> >          <T extends Annotation> T getUniqueMetaData(Class<T> target)
> >> > to ViewConfigDescriptor?
> >> > Many custom ViewMetaData's are unique and so we must not create a
> >> ArrayList
> >> > each time.
> >> >
> >> >
> >> > Regards,
> >> > Thomas
> >> >
> >>
> >
> >
>



-- 
Jason Porter
http://en.gravatar.com/lightguardjp

Re: [JSF][Proposal] ViewMetaData for HTTP caching

Posted by Thomas Andraschko <an...@gmail.com>.
Any comments?
Sometimes it's really usefull to cache "static" views and it's the easiest
way via type safe view configuration.
I could also provide it via pull request.


2013/2/14 Thomas Andraschko <an...@gmail.com>

> Hi Mark,
>
> somehow i missed your answers.
> I would only like to set the expires headers the for request of this view.
>
> Regards,
> Thomas
>
>
> 2012/12/17 Mark Struberg <st...@yahoo.de>
>
>> Just out of curiosity:
>>
>> What and at which level do you like to cache?
>>
>> * do you like to cache the rendered html?
>> * do you 'intercept' and proxy the response and return the cached html
>> for every request?
>> * do you only set the 'expires' http header for the generated sites?
>>
>>
>>
>> LieGrue,
>> strub
>>
>>
>>
>> ----- Original Message -----
>> > From: Thomas Andraschko <an...@gmail.com>
>> > To: deltaspike-dev@incubator.apache.org
>> > Cc:
>> > Sent: Monday, December 17, 2012 5:37 PM
>> > Subject: [JSF][Proposal] ViewMetaData for HTTP caching
>> >
>> > Hi,
>> >
>> > sometimes it's required or possible to cache some views.
>> > We implemented a CODI ViewConfig based solution for this.
>> >
>> > Here is a prototype: https://gist.github.com/aab5992ab4cf5d22b2d3
>> >
>> > What do you think? Is this useful for other users too and can we maybe
>> add
>> > it to DeltaSpike?
>> >
>> > @Gerhard
>> > Would it be possible to add a new method
>> >          <T extends Annotation> T getUniqueMetaData(Class<T> target)
>> > to ViewConfigDescriptor?
>> > Many custom ViewMetaData's are unique and so we must not create a
>> ArrayList
>> > each time.
>> >
>> >
>> > Regards,
>> > Thomas
>> >
>>
>
>