Hi everybody, spent a little time to figure out why our custom corporate font was not loading in our OXID eShop on the Internet Explorer (from version 9 up to latest). IE needs an 'cache-control' Header without the 'no-cache' instruction, 'max-age=0‘ instead works fine.
The Varnish sub 'oxBeforeDeliver' prevents 'cache-control' headers to be set by Apache (or other web servers) for static font files. We had to change the following line in the vcl: # Do not add Cache-Control header for static elements so browser could cache them if (req.url !~ "\.(jpg|jpeg|png|gif|gz|tgz|bz2|tbz|mp3|ogg|css|js)$") { TO: # Do not add Cache-Control header for static elements so browser could cache them if (req.url !~ "\.(jpg|jpeg|png|gif|gz|tgz|bz2|tbz|mp3|ogg|css|js|ttf|ttc|otf|eot|woff|woff2|svg)(\?.*)?$") { This adds file type support for eot, ttf, etc, otf, eot, woff, woff2, svg and also allows request parameters e.g. ?39jk0p#iefix I think it would maybe a better solution to check here also against the /out/ directory which should include all static resources. What do you think? my two cents, best regards, Jens Twitter: jc_trant
_______________________________________________ dev-general mailing list dev-general@lists.oxidforge.org http://dir.gmane.org/gmane.comp.php.oxid.general