Jump to content
thirty bees forum

bzndk

Members
  • Posts

    104
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by bzndk

  1. just found a small article in my bookmarks i played with. https://github.com/uhop/grunt-tight-sprite/wiki/Recipe:-serve-WebP-with-nginx-conditionally had the other pice of code in a dir with different nginx config options. Dont think there is 100% perfect solution since you have to check if there http_accept allows webp to be served.
  2. Hmm that could be done with something like this in Nginx if i recall right. map $httpaccept $webpsuffix { default ""; "~*webp" ".webp"; }
  3. Ahh okay - hopefully one day TB is possible to figure out if it should serve webp or jpg, depending on the users browser/platform. i would ad following to the nginx config, from my experience a few modules needs this rewrite. rewrite "^/module/([a-zA-Z0-9-]*)/([a-zA-Z0-9-]*)$" /index.php?fc=module&module=$1&controller=$2 last;
  4. @mdekker may i ask what solution you used to figure out if the sites should deliver a webp vs a jpg file ?
×
×
  • Create New...