https://bugzilla.wikimedia.org/show_bug.cgi?id=48835

       Web browser: ---
            Bug ID: 48835
           Summary: Separate Cache-Control header for proxy and client
           Product: MediaWiki
           Version: 1.22-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

MediaWiki has traditionally used the Cache-Control header to control the CDN
(i.e. Squid reverse proxy), then the Cache-Control header for clients has been
specified in Squid configuration. Specifically, when a certain URL regex
matches, the Cache-Control header is stripped out and replaced with the
configured header.

This is not ideal, as noted by Gabriel in a comment in the original code. It
would be better if MediaWiki specified both headers in its response, so that
the URL regex and client Cache-Control header does not need to be maintained in
the CDN configuration. Originally, this would have required a Squid patch, but
now that we are switching to Varnish, the feature can be implemented with VCL.

Specifically, MW should send a Client-Cache-Control header which Varnish will
rewrite to Cache-Control as appropriate.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to