Open Bug 1284380 Opened 8 years ago Updated 4 years ago

Bugzilla should set Cache-Control: private on all requests (until we can do something more flexible)

Categories

(bugzilla.mozilla.org :: General, enhancement, P5)

Production
enhancement

Tracking

()

People

(Reporter: dylan, Unassigned, Mentored)

Details

Attachments

(1 file)

If a bugzilla user wants to run it behind a CDN like fastly, the reverse proxy may cache the result of show_bug.cgi, including show_bug.cgi on a private bug. 
Setting Cache-Control: private in $cgi->header() should alleviate this.

However if Cache-Control is already set, nothing should be done. Hopefully we can begin to do even smarter things so that bugzilla sites can run behind fast CDNs.
The code in question would be https://github.com/bugzilla/bugzilla/blob/master/Bugzilla/CGI.pm#L275-L345
CGI.pm does some name mangling, so the value would be $headers{Cache_Control}.
Mentor: dylan
Hey! I would like to work on this bug. As this bug is my first, can someone guide me, as to where should I start from?

Removing good-first-bug keyword because team does not have bandwidth to mentor at the moment.

Keywords: good-first-bug
Assignee: general → dylan
Component: Bugzilla-General → General
Product: Bugzilla → bugzilla.mozilla.org
QA Contact: default-qa
Version: 5.1.1 → Production
Type: defect → enhancement
Assignee: dylan → nobody

I would love to give this bug a go. Could it be assigned to me, please?

Whiteboard: [good first bug]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: