View Issue Details

IDProjectCategoryView StatusLast Update
0004432mantisbtperformancepublic2005-05-31 11:23
Reporterjferraz Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.19.0rc1 
Fixed in Version1.0.0a3 
Summary0004432: Allow caching of attached files
Description

Bug attachments (served by file_download.php) have the usual PHP "please, do not cache this" headers (Expires, Cache-control) and no modification date, but each file is pretty much static data after its upload to the server.

This causes a performance impact because user agents are not allowed to cache these files, and every time you open a bug view page with images attached the browser downloads again the same static data.

I don't know if it is feasible to fix this, but I decided to report it to let you (developers) discuss about. The file_download.php script should also be able to answer HEAD requests to inform the user agent the last modification date of the file (that is, the upload time).

TagsNo tags attached.

Activities

jlatour

jlatour

2004-08-29 18:00

reporter   ~0007295

Well, sounds like something worth looking into.

jferraz

jferraz

2005-05-18 22:14

reporter   ~0010172

Need to check if the recent commit for 0005533 and 0003729 fixed this bug also.

thraxisp

thraxisp

2005-05-18 22:35

reporter   ~0010173

The fix for 0005533 covers the no-cache headers. We should also provide a proper modification date.

thraxisp

thraxisp

2005-05-19 08:19

reporter   ~0010175

Fixed in CVS. Last-Modified header added.

file_download.php -> 1.37