Merge pull request #195 from PaulAdamDavis/icon-caching

Add version number to icon font src urls
This commit is contained in:
John O'Nolan 2015-04-15 13:01:02 +03:00
commit d32e9db4cb

View File

@ -107,11 +107,11 @@ table { border-collapse: collapse; border-spacing: 0; }
/* Import the font file with the icons in it */ /* Import the font file with the icons in it */
@font-face { @font-face {
font-family: "casper-icons"; font-family: "casper-icons";
src:url("../fonts/casper-icons.eot"); src:url("../fonts/casper-icons.eot?v=1");
src:url("../fonts/casper-icons.eot?#iefix") format("embedded-opentype"), src:url("../fonts/casper-icons.eot?v=1#iefix") format("embedded-opentype"),
url("../fonts/casper-icons.woff") format("woff"), url("../fonts/casper-icons.woff?v=1") format("woff"),
url("../fonts/casper-icons.ttf") format("truetype"), url("../fonts/casper-icons.ttf?v=1") format("truetype"),
url("../fonts/casper-icons.svg#icons") format("svg"); url("../fonts/casper-icons.svg?v=1#icons") format("svg");
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
@ -164,6 +164,11 @@ table { border-collapse: collapse; border-spacing: 0; }
.icon-menu:before { .icon-menu:before {
content: "\f609"; content: "\f609";
} }
/*
IMPORTANT: When making any changes to the icon font, be sure to increment
the version number by 1 in the @font-face rule. `?v=1` becomes `?v=2`
This forces browsers to download the new font file.
*/
/* ========================================================================== /* ==========================================================================