Does anyone know how I can change the HTTP Header values that get sent out for my webpages. Is this a command line prompt? I want to keep the pages from being cached by AOL for example. I'm using SilverStream Server 4.0.
YOu have to change by setting the headers in the response object.
response.setHeader(httpHeader, value)
In Pages that is done in the pageRequestBegin section
In the world of JSP you just say:
<%
response.setHeader(....);
%>
BTW: This won't help you with AOL. AOL caches the page on its servers and doesn't look at this stuff. The only ways I found to "beat" AOL is to:
- Create a unique URL each time (x.jsp?date=timeinmilliseconds)
- Have all AOL users use HTTPS since AOL does not cache HTTPS pages
mingus, you are correct with what you say. AOL does not look at any HTML code and will cache all URLs that aren't unique or that aren't HTTPS. They say they won't cache if there is a ? mark or ; in the URL, but my URL has a question mark and they cache.
The thing is we bought this software from another company and the pages are encrypted and I can't change them.
There is an HTTP Header object that is separate from the HTML and page code that AOL will obey. It's easy to change the HTTP header in Microsoft IIS, but I don't know how to do it in SilverSteam.
If I change the Cache-Control=[no-cache] to Cache-Control=[no-store], AOL says they won't cache it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.