mobify/spline — pull request #25 by jeffkamo (2014-08-18 21:54:13+00:00)
Title: Add a cache buster to the web-font mixin

This is to help prevent browsers from caching the icon fonts after pushing up new bundles to production.

Status: **Opened for visibility**
Reviewers: @kpeatt @ry5n

## Changes
- Add the `$cache-buster` parameter to the `web-font()` mixin

## How to Test
1. Include this new version of `web-font()` on a project that uses icons (or a custom webfont)
2. Include the `$cache-buster` parameter like this:

```
// _typography.scss
@include web-font($icon-font, $icon-path, $cache-buster: random(999999999999));
```

3. Load the project in Chrome (or any browser that has a web inspector)
4. In the web inspector, view the Network resources for Fonts
5. Confirm that the request url for the web-font asset includes the cache buster at the end of the url, for example...

```
Request URL: http://10.10.0.125:8080/fonts/icons/my-project/my-project.woff?999999999999
```

If you used a `random()` number as the cache buster, you should see a random number at the end of the request url.