View Browser Caching NGINX sites-available
. . .
# Default server configuration
#
# Expires map
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css max;
application/javascript max;
View Abilitare il Browser Caching su NGINX
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
View ExpiresByType Directive
# enable expirations
ExpiresActive On
# expire GIF images after a month in the client's cache
ExpiresByType image/gif A2592000
# HTML documents are good for a week from the
# time they were changed
ExpiresByType text/html M604800
View Google follows JS links
View Hreflang x-default
<link rel="alternate" href="http://example.com/" hreflang="x-default" />
View Esempio hreflang
<link rel="alternate" href="http://example.com/en-ie" hreflang="en-ie" />
<link rel="alternate" href="http://example.com/en-ca" hreflang="en-ca" />
<link rel="alternate" href="http://example.com/en-au" hreflang="en-au" />
<link rel="alternate" href="http://example.com/en" hreflang="en" />
View Canonical & hreflang booking.com
<link rel="canonical" href="http://www.booking.com/city/it/rome.it.html" />
<link rel="alternate" type="text/html" hreflang="en-gb" href="http://www.booking.com/city/it/rome.en-gb.html" title="English (UK)"/>
<link rel="alternate" type="text/html" hreflang="en-us" href="http://www.booking.com/city/it/rome.html" title="English (US)"/>
<link rel="alternate" type="text/html" hreflang="de" href="http://www.booking.com/city/it/rome.de.html" title="Deutsch"/>
<link rel="alternate" type="text/html" hreflang="nl" href="http://www.booking.com/city/it/rome.nl.html" title="Nederlands"/>
<link rel="alternate" type="text/html" hreflang="fr" href="http://www.booking.com/city/it/rome.fr.html" title="Français"/>
<link rel="alternate" type="text/html" hreflang="es" href="http://www.booking.com/city/it/rome.es.html" title="Español"/>
<link rel="alternate" type="text/html" hreflang="es-ar" href="http://www.booking.com/city/it/rome.es-ar.html" title="Español (AR)"/>
<link rel="alternate" type="text/html" hreflang="ca" href="htt
View Meta Tag Language
<head>
<meta http-equiv="content-language" content="en-us" />
</head>
View Hreflang nella Sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>http://www.esempio.com/english/</loc>
<xhtml:link
rel="alternate"
hreflang="de"
href="http://www.esempio.com/deutsch/"
/>
View Intestazione HTTP con hrelang
# valore hreflang singolo
Link: <http://it.esempio.com/>; rel="alternate"; hreflang="ithrelang "
# valori hreflang multipli
Link: <http://it.esempio.com/>; rel="alternate"; hreflang="it",<http://de.esempio.com/>; rel="alternate"; hreflang="de"