Templarian / MaterialDesign-Webfont

@mdi/font Dist for Material Design Icons.
https://materialdesignicons.com
Other
402 stars 157 forks source link

Make mdi-version optional. #95

Open sgpinkus opened 9 months ago

sgpinkus commented 9 months ago

Adding the version query param in scss/_path.scss resulting in urls like ...materialdesignicons-webfont.woff2?v=7.3.67 break caching in some contexts because the cached asset name doesn't include the query string. One case is auto generated precaching in service workers. This commit allows you to override the $mdi-version variable with 0 or unset it to have the query parameter omitted from the URLs.