Ok, now it is a bit clearer.
You really need to read the series of earlier messages I mentioned
earlier. The basic case is very similar to yours.
Thus, you have an Apache front-end, and a Tomcat back-end.
The Tomcat back-end is the one that produces the answers, which are
generally large PDF documents.
You would like that the Apache front-end caches the responses from
Tomcat, so that if another request comes for the same URL within a
certain timeframe, it is Apache that will serve the PDF document from
its local cache, rather than passing the request again to Tomcat and
forcing Tomcat to produce the same big PDF document again.
For that, you need to set up mod_cache at the Apache level.
You also need to make sure that Tomcat, when it delivers a response,
indicates in the response the timeframe for which this same response is
valid. That means that it needs to set a HTTP header like "Expires".
Once you do that, Apache and mod_cache will take care of it nicely and
automatically, and even your Apache host's operating system disk cache
will help.
I suggest that, for a start, you read the Apache 2.2 documentation for
"content caching" (on the main documentation page). That will tell you
a lot about such HTTP headers and how mod_cache handles them.
Then, when you have read it and understood it, try out something, and
come back here for more questions if you have any.
srinivasch wrote:
I am sorry if my question is vague. Anyways YES you are right we already have
an application which runs on tomcat and Apache web server. The PDF documents
I mentioned are big and they need to be retrieved everytime from database
whenever user requests, and we have quite a volume of users and their
requests for these documents hence we thought of caching these frequently
requested/downloaded pdf documents and the less frequent ones are either
flushed out of cache and the ones which are not requested should not be
cached.
I hope I made some sense.
awarnier wrote:
srinivasch wrote:
[...]
Hi.
The problem is, your question is so vague that it is difficult to give
you any precise response.
You may benefit from reading the messages of one of the previous threads
on this same list, the ones with the subject :
Clearing cache selectively on Apache + mod_cache
That may give you some clues to start with.
From your initial post, I kind of guess that you already have an
application running under Apache, and that it delivers content which are
PDF documents. Is that correct ?
If it is, then can you explain why you want to cache this content ?
It is not quite clear from your initial post why you would want to do
that, considering this seems to be dynamic content anyway.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]