diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-01-04 12:30:13 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-01-15 11:59:26 +0100 |
commit | 21e4029acf757898da8695474f94642f9858acd8 (patch) | |
tree | 567a10b18b4f1b573de5ae151018f6518244138a /test/storage/server.js | |
parent | 957415823a003111f6efecd1a1552a30f999235a (diff) | |
download | qtlocation-mapboxgl-21e4029acf757898da8695474f94642f9858acd8.tar.gz |
[core] use stale styles
This adds support for using cached styles that are stale. They're treated like changing styles; when the refreshed style changed compared to the one we've already had, we're swapping out the entire style, which might cause a slight flicker.
Diffstat (limited to 'test/storage/server.js')
-rwxr-xr-x | test/storage/server.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/storage/server.js b/test/storage/server.js index 5d547b1506..0024330037 100755 --- a/test/storage/server.js +++ b/test/storage/server.js @@ -32,6 +32,9 @@ app.get('/test', function (req, res) { res.send('Hello World!'); }); +app.get('/stale/*', function() { + // Never respond. +}); var cacheCounter = 0; app.get('/cache', function(req, res) { |