Changeset View
Changeset View
Standalone View
Standalone View
src/applications/celerity/controller/CelerityResourceController.php
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | return array( | ||||
'gif' => 'image/gif', | 'gif' => 'image/gif', | ||||
'jpg' => 'image/jpeg', | 'jpg' => 'image/jpeg', | ||||
'swf' => 'application/x-shockwave-flash', | 'swf' => 'application/x-shockwave-flash', | ||||
'woff' => 'font/woff', | 'woff' => 'font/woff', | ||||
'woff2' => 'font/woff2', | 'woff2' => 'font/woff2', | ||||
'eot' => 'font/eot', | 'eot' => 'font/eot', | ||||
'ttf' => 'font/ttf', | 'ttf' => 'font/ttf', | ||||
'mp3' => 'audio/mpeg', | 'mp3' => 'audio/mpeg', | ||||
'ico' => 'image/x-icon', | |||||
); | ); | ||||
} | } | ||||
private function makeResponseCacheable(AphrontResponse $response) { | private function makeResponseCacheable(AphrontResponse $response) { | ||||
$response->setCacheDurationInSeconds(60 * 60 * 24 * 30); | $response->setCacheDurationInSeconds(60 * 60 * 24 * 30); | ||||
$response->setLastModified(time()); | $response->setLastModified(time()); | ||||
$response->setCanCDN(true); | $response->setCanCDN(true); | ||||
Show All 29 Lines |