SJS Webserver 7.0 - help with obj.conf

Associate
Joined
6 Jan 2009
Posts
1,191
I am currently configuring a virtual server specific obj.conf via ws7.0. I have configured it so that requests are handled via a reverse proxy, with it passing cache control directives that target particular pages - this works fine. Unfortunately despite the cache control directive, the content is still either being cached on the proxy or within the cms cache regardless.

As a result I would like to be able to append some form of random parameter to the end of the URL so that a new version of the page is sure to be returned. Presumably it will be the case of adding an additional NameTrans directive (fn="rewrite") into the default object? Just to clarify I want any requests for e.g.http://blah/news.html to have a parameter appended such as a question mark, a date stamp (CTIME?) or something more appropriate. This is how it currently stands... any suggestions would be apreciated, thanks.

<Object name="default">
...
NameTrans fn="assign-name" from="*news*" name="*news*"
...
NameTrans fn="map" from="/" name="reverse-proxy-/" to="http:/"
...
</Object>

<Object name="reverse-proxy-/">
Route fn="set-origin-server" server="http://localhost:8080"
</Object>

<Object ppath="http:*">
Service fn="proxy-retrieve" method="*"
</Object>

<Object name="*news*">
PathCheck fn="set-cache-control" control="max-age=600"
ObjectType fn="force-type" type="text/plain"
</Object>
 
Back
Top Bottom