Comment 3 for bug 1435938

Revision history for this message
Josh Stompro (u-launchpad-stompro-org) wrote :

Dang, I found an issue after I kept poking at my other test system. I think that the apache config needs to set a nocache option for the clearcache url. When I try to clear a record the second time, I just get the cached results from the first run. When I tested on the sandbox I only tested once, I didn't try it a second time.

When I modify my apache config for the clearcache location and enable mod_headers it works correctly every time.

<Location /opac/extras/ac/clearcache/>
    PerlAccessHandler OpenILS::WWW::AccessHandler
    PerlSetVar OILSAccessHandlerPermission "STAFF_LOGIN"
    <IfModule mod_headers.c>
        Header onsuccess set Cache-Control no-cache
    </IfModule>
</Location>

Now the response header always includes Cache-Control: no-cache

So I think some more testing is needed. mod_headers is not currently enabled by default in Jessie, should it be? Removing my signoff tag until someone else can take a look at this.