il faut utiliser ton lqngage back end pour configurer la cache dans les
parametres du header <
per exemple en* symfony PHP* voila comment procéder
> $response = $this->render("ROUTE_VERS_LE_FICHIER");
> $response->setCache(array(
> 'last_modified' => new DateTime(
> 'DATE_DE_LA_DERNIERE_MISE_A_JOUR_DES_FICHIERS'),
> 'max_age' => 36000,
> 's_maxage' => 10,
> 'public' => true
> ));
> $response->headers->addCacheControlDirective('must-revalidate',
> true);
> return $response;
>
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.