You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Legolas Woodland <le...@gmail.com> on 2006/01/10 23:01:52 UTC

How to cache a page for some days (in server side) , and allow user to knwo the page OLD

Hi
Thank you for reading my post.

I have a very heavy to create web page wich contain some chart....
I want users to be able to see the live report once per 2 days.

This page contain some sophisticate query , so refreshing the page data
could be very heavy job.

so i want to allow users to see a cached version of the page after they
refresh it until 3 days.
during this 3 days i want to have a lable or something that shows user ,
This page is : 2 Days old .

is it possible to do such thing ?
I should mention that

1-im using jsf
2-im using Creator Studio
3-it is a portlet page

can this job be done with OScache , ... ?
or it need some special knowledge ?

Thank you

Re: How to cache a page for some days (in server side) , and allow user to knwo the page OLD

Posted by Wayne Fay <wa...@gmail.com>.
I don't know anything about OSCache and this is certainly not the
OSCache user's list. Perhaps contact them directly if you really want
to use their product.

Personally, I'd generate and maintain the page using a saperate
process, shove it somewhere (you said its a chart so I'll assume its a
GIF or JPG) into a database or filesystem, and include the "generation
time" stamp somewhere on the file/image. Or you could include a
"generated" datetime field in the database or read the lastModified
time on the file.

This seems to be the "simplest" way to do this, to me.

Wayne


On 1/10/06, Legolas Woodland <le...@gmail.com> wrote:
>
>
> Hi
> Thank you for reading my post.
>
> I have a very heavy to create web page wich contain some chart....
> I want users to be able to see the live report once per 2 days.
>
> This page contain some sophisticate query , so refreshing the page data
> could be very heavy job.
>
> so i want to allow users to see a cached version of the page after they
> refresh it until 3 days.
> during this 3 days i want to have a lable or something that shows user ,
> This page is : 2 Days old .
>
> is it possible to do such thing ?
> I should mention that
>
> 1-im using jsf
> 2-im using Creator Studio
> 3-it is a portlet page
>
> can this job be done with OScache , ... ?
> or it need some special knowledge ?
>
> Thank you

Re: How to cache a page for some days (in server side) , and allow user to knwo the page OLD

Posted by Matthias Wessendorf <mw...@gmail.com>.
Hi,

I have done something similar (generating) large PDFs
Squid has done the caching job. Even if there is a new version of the
PDF, squid downloaded this new pdf one time! Each browsers request was
served by squid.

Perhaps in your situation you can play a bit w/ the request heads for caching?
(ETAG, modifiedsince)

(Have to search a more detailed link...)

-Matthias

On 1/10/06, Legolas Woodland <le...@gmail.com> wrote:
>
>
> Hi
> Thank you for reading my post.
>
> I have a very heavy to create web page wich contain some chart....
> I want users to be able to see the live report once per 2 days.
>
> This page contain some sophisticate query , so refreshing the page data
> could be very heavy job.
>
> so i want to allow users to see a cached version of the page after they
> refresh it until 3 days.
> during this 3 days i want to have a lable or something that shows user ,
> This page is : 2 Days old .
>
> is it possible to do such thing ?
> I should mention that
>
> 1-im using jsf
> 2-im using Creator Studio
> 3-it is a portlet page
>
> can this job be done with OScache , ... ?
> or it need some special knowledge ?
>
> Thank you


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com