https://bz.apache.org/bugzilla/show_bug.cgi?id=66038

--- Comment #1 from Seann Herdejurgen <[email protected]> ---
I have built a workaround, however it is kind of a kludge. I cache html files
for a day after access. For html files with SSI content that is updated
Monday-Friday at 5pm, I have a FilesMatch rule which expires these files a day
after modification. In order for these files to have an expiration date in the
future I implemented a cron job to touch these files everyday at 5pm, even on
the weekend when data is not updated.

Here is the relevant configuration for this setup:

    <FilesMatch "\.(html)$">
        Header set Cache-Control "no-transform, s-maxage=86400, max-age=86400,
stale-while-revalidate=7200, stale-if-error=7200"
        ExpiresActive on
        ExpiresDefault "access plus 1 day"
    </FilesMatch>

    <FilesMatch
"(going-public|index|investing-basics|stock-investing|support-privacy|tools)\.html$">
        Header set Cache-Control "no-transform, s-maxage=3600,
stale-while-revalidate=7200, stale-if-error=7200"
        ExpiresActive on
        ExpiresDefault "modification plus 1 day"
    </FilesMatch>

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to