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

            Bug ID: 58880
           Summary: Support serving stale content while revalidating cache
                    (RFC 5861)
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_cache
          Assignee: [email protected]
          Reporter: [email protected]

In the interest of giving users immediate satisfaction, mod_cache should
support the “Cache-Control: stale-while-revalidate=600” extension RFC 5861.
Without this extension, every users enters a lottery were the lucky winner have
to wait while the backend generates a new response (the “Thundering Herd”
revalidating-lock logic). That user will be dissatisfied.

This unlucky user is often a search engine, which will access every resource
and is highly likely to encounter expired resources. Site speed being an
important metric in modern search ranking causes websites running httpd to be
negatively affected.


RFC 5861 also adds “Cache-Control: stale-if-error=600”, but httpd already
provides this through the CacheStaleOnError directive. Supporting this header
would be good, but offers no immediate new benefit like stale-while-revalidate
does.

Similar to the CacheStaleOnError directive, there should also be a
CacheStaleWhileRevalidating directive.

-- 
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