favicon en cache
This commit is contained in:
parent
265d922930
commit
acdebb47ce
|
@ -426,6 +426,25 @@ Pour désactiver le mode maintenance (pas besoin de recharger Nginx) :
|
||||||
$ mv /home/example/www/{,_}maintenance.html
|
$ mv /home/example/www/{,_}maintenance.html
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
### Favicon en cache
|
||||||
|
|
||||||
|
Pour favoriser la mise en cache des "favicon" il est possible d'ajouter cet extrait dans un bloc "server" :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
server {
|
||||||
|
[…]
|
||||||
|
location ~* favicon\.(ico|gif|png)$ {
|
||||||
|
expires 30d;
|
||||||
|
add_header Pragma public;
|
||||||
|
add_header Cache-Control public;
|
||||||
|
access_log off;
|
||||||
|
}
|
||||||
|
[…]
|
||||||
|
}
|
||||||
|
~~~
|
||||||
|
|
||||||
|
Les fichiers favicon.ico, favicon.png et favicon.gif seront candidats à la mise en cache pendant 30 jours et aucun log d'accès ne sera inscrit.
|
||||||
|
|
||||||
## Monitoring
|
## Monitoring
|
||||||
|
|
||||||
### log2mail
|
### log2mail
|
||||||
|
|
Loading…
Reference in a new issue