SEO improvements

This commit is contained in:
Maksym Pavlenko
2019-06-02 20:46:00 -07:00
parent de42b3fcab
commit 3ed2533496
3 changed files with 28 additions and 2 deletions
+22
View File
@@ -37,6 +37,28 @@ http {
root /var/www/podsync/;
index index.html;
# Cache media: images, icons, video, audio, HTC
# See https://serversforhackers.com/c/nginx-caching
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
expires 3M;
access_log off;
add_header Cache-Control "public";
}
# Cache CSS and Javascript
location ~* \.(?:css|js)$ {
expires 1y;
access_log off;
add_header Cache-Control "public";
}
# Cache fonts
location ~* \.(?:ttf|woff|woff2|eot|otf)$ {
expires 1y;
access_log off;
add_header Cache-Control "public";
}
location /nginx-ping {
access_log off;
return 200 "pong\n";
+5 -1
View File
@@ -1,5 +1,9 @@
User-agent: *
Allow: /$
Allow: /faq.html
Allow: /*.js
Allow: /*.css
Allow: /faq
Allow: /assets/*
Allow: /fontawesome-webfont*
Disallow: /
Host: www.podsync.net
+1 -1
View File
@@ -34,7 +34,7 @@
<div class="man"></div>
<div>
<a href="https://www.patreon.com/podsync" target="_blank">
<a href="https://www.patreon.com/podsync" target="_blank" rel="noopener">
<img alt="Become my patron on Patreon" class="patreon shadow" src="assets/img/become_patreon.png"
width="400"/>
</a>