Closed Bug 696865 Opened 13 years ago Closed 13 years ago

Attachments should provide a last modified date in the HTML Headers

Categories

(Bugzilla :: Attachments & Requests, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 167808

People

(Reporter: michael.j.tosh, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.23) Gecko/20110920 Firefox/3.6.23 (.NET CLR 3.5.30729)
Build ID: 20110920075126

Steps to reproduce:

When printing the CGI headers, attachment.cgi should also provide the Last_Modified date of the attachment (since attachments don't change, it should be the creation_ts)

I'd also like to see an Expires date in the future, and a Cache_Control of private with a large max-age, but there could be potential problems of a proxy cache being able to provide the contents of an attachment that a user shouldn't otherwise be able to view.
I used this:
print $cgi->header(-type=>"$contenttype; name=\"$filename\"",
                   -expires => 'Mon, 1 Jan 2029 05:00:00 GMT',
                   -Last_Modified => $modified,
                   -Cache_Control => "public, max-age=99936000",
                   -content_disposition=> "inline; filename=\"$filename\"",
                   -content_length => $filesize);
Severity: normal → enhancement
Severity: enhancement → normal
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.