C
C
cat_crash2011-06-03 15:24:30
Nginx
cat_crash, 2011-06-03 15:24:30

Substitution of headers in a bunch of Combat Server-Cache Server-Client?

We have the following configuration:
Apache2 (Front-End, Caching proxy)
Tomcat6 (Back-end server) — server that generates data (PNG pictures)
The task is to make a cache using apache of the content given by Tomcat.
The task fits well with the modules mod_proxy, mod_cache, mod_cache_disk
But there is one thing:
In the description of mod_cache ( httpd.apache.org/docs/2.2/caching.html) there is an item:
“If the URL included a query string (eg from a HTML form GET method) it will not be cached unless the response specifies an explicit expiration by including an "Expires:" header or the max-age or s-maxage directive of the "Cache-Control:" header, as per RFC2616 sections 13.9 and 13.2 .one."
those. content that receives GET data but does not return certain headers will not be cached on the proxy.
The question is simple - how to make Apache cache this content, provided that the headers cannot be changed on the back-end server.
Dug in the direction of mod_header but did not find how to apply it to the headers returned from the Back-end to the Front-end
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2011-06-03
@cat_crash

Here you will now be advised to replace Apache with a specialized reverse proxy, i.e. nginx/lighttpd. And they will be right.
As for the question, it’s about the fact that you don’t need “some kind of heading”, but quite specific, no one bothers you to insert it into your pages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question