linuxserver / docker-phpmyadmin

GNU General Public License v3.0
23 stars 2 forks source link

Adjust caching rules #19

Closed williamdes closed 2 years ago

williamdes commented 2 years ago

https://github.com/linuxserver/docker-phpmyadmin/blob/31a7872c1c86b3219116fd1f0c93c793ba99bfd9/root/defaults/nginx/site-confs/default.conf.sample#L24

This config above is not optimal because the known folders to cache are js/ and themes/. So you can cache them to max age without issues :)

Edit: you can also cache the entire doc/ folder too

williamdes commented 2 years ago

I did not want to spam with another issue just for that but: https://github.com/linuxserver/docker-phpmyadmin/blob/31a7872c1c86b3219116fd1f0c93c793ba99bfd9/root/defaults/nginx/site-confs/default.conf.sample#L13

This makes no sense for phpMyAdmin. Use index index.php index.html;, only doc/ will have static html files