Skip to content

Commit 035eb15

Browse files
authored
Add webp to browser cache list (hestiacp#2209)
* Add support for webp * Also update v-add-web-proxy * Update change log
1 parent f487bb7 commit 035eb15

File tree

140 files changed

+154
-153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+154
-153
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ All notable changes to this project will be documented in this file.
1919
- Improve ssh port detection for filemanager. Allowing users to create /etc/ssh/sshd.conf.d/custom.conf with custom port
2020
- Fix an bug in v-add-letsencrypt-host due to changes of Lets Encrypt causing issues with rate limiting
2121
- Improve Update process Hestia and allow versions to decide a a rebuild is required
22-
- Add Download SSL certificate function for self generated ssl cerrtificates #2181
22+
- Add Download SSL certificate function for self generated ssl certificates #2181
2323
- Block access to .user.ini for Nginx + Apache2 #2179
2424
- Add support for download B2 backup to local server to allow for restore #2199
2525
- Update permissions /var/kog/roundcube on older installations #2173
2626
- Update translations
27-
- Fix Roundcube persmissions
27+
- Fix Roundcube permissions
28+
- Add webp to list of media formats that can be cached by the browser
2829

2930
### Dependencies
3031

bin/v-add-web-domain-proxy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
user=$1
1818
domain=$2
1919
template=$3
20-
default_extentions="jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,doc,xls,\
20+
default_extentions="jpg,jpeg,gif,png,webp,ico,svg,css,zip,tgz,gz,rar,bz2,doc,xls,\
2121
exe,pdf,ppt,txt,odt,ods,odp,odf,tar,wav,bmp,rtf,js,mp3,avi,mpeg,flv,html,htm"
2222
extentions=${4-$default_extentions}
2323
restart="$5"

install/deb/multiphp/nginx/PHP-56.stpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ server {
1616

1717
location / {
1818

19-
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
19+
location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
2020
expires max;
2121
fastcgi_hide_header "Set-Cookie";
2222
}

install/deb/multiphp/nginx/PHP-56.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ server {
1111
1212
location / {
1313
14-
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
14+
location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
1515
expires max;
1616
fastcgi_hide_header "Set-Cookie";
1717
}

install/deb/multiphp/nginx/PHP-70.stpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ server {
1616

1717
location / {
1818

19-
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
19+
location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
2020
expires max;
2121
fastcgi_hide_header "Set-Cookie";
2222
}

install/deb/multiphp/nginx/PHP-70.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ server {
1111
1212
location / {
1313
14-
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
14+
location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
1515
expires max;
1616
fastcgi_hide_header "Set-Cookie";
1717
}

install/deb/multiphp/nginx/PHP-71.stpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ server {
1616

1717
location / {
1818

19-
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
19+
location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
2020
expires max;
2121
fastcgi_hide_header "Set-Cookie";
2222
}

install/deb/multiphp/nginx/PHP-71.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ server {
1111
1212
location / {
1313
14-
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
14+
location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
1515
expires max;
1616
fastcgi_hide_header "Set-Cookie";
1717
}

install/deb/multiphp/nginx/PHP-72.stpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ server {
1616

1717
location / {
1818

19-
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
19+
location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
2020
expires max;
2121
fastcgi_hide_header "Set-Cookie";
2222
}

install/deb/multiphp/nginx/PHP-72.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ server {
1111
1212
location / {
1313
14-
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
14+
location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
1515
expires max;
1616
fastcgi_hide_header "Set-Cookie";
1717
}

0 commit comments

Comments
 (0)