Bug #34113
ICS view, wrong HTTP Header Fields
| Status: | New | Start date: | 2012-02-20 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Mario Matzulla | % Done: | 0% |
|
| Category: | Calendar Views | Spent time: | - | |
| Target version: | 1.6 | |||
| Votes: | 0 |
Description
Several wrong HTTP Headers are send in ICS view. These are defined in class.tx_cal_icsview.php on line 192 ff.
if($sendHeaders) {
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Content-Disposition: attachment; filename='.$title);
header('Content-Type: text/ics');
header('Pragma: ');
header('Cache-Control:');
}
- Expires: 0 -> invalid, it must be in RFC 1123 date format (see RFC 2616 section 14.21)
- Cache-Control: must-revalidate, post-check=0, pre-check=0 -> unnecessary (see http://blogs.msdn.com/b/ieinternals/archive/2009/07/20/using-post_2d00_check-and-pre_2d00_check-cache-directives.aspx)
- Content-Type: text/ics -> should/could be: Content-type:text/calendar; charset=utf-8
- Pragma: -> undefined
- Cache-Control: -> undefined, overwrites the previously set value
Sugestion: delete the header() commands other than Content-Disposition:... in class.tx_cal_icsview.php and define them in TypoSript Setup.
History
Updated by Thomas Kowtsch about 1 year ago
- Assignee set to Mario Matzulla
- Target version set to 1.5
Assigning initially to Mario and to v1.5 - still might be shifted to a later release
Updated by Thomas Kowtsch 8 months ago
- Target version changed from 1.5 to 1.6