Changeset View
Changeset View
Standalone View
Standalone View
src/applications/celerity/controller/CelerityResourceController.php
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | return array( | ||||
'ttf' => 'font/ttf', | 'ttf' => 'font/ttf', | ||||
'mp3' => 'audio/mpeg', | 'mp3' => 'audio/mpeg', | ||||
); | ); | ||||
} | } | ||||
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); | |||||
return $response; | return $response; | ||||
} | } | ||||
/** | /** | ||||
* Is it appropriate to cache the data for this resource type in the fast | * Is it appropriate to cache the data for this resource type in the fast | ||||
* immutable cache? | * immutable cache? | ||||
Show All 22 Lines |