Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
fix(test): Remove cache busting URLs in dev mode.
Browse files Browse the repository at this point in the history
* If `static_max_age` is set in `local.json`, .JS files are served with a maxAge of 0 already. ETags will still be checked.
* Enables the use of browser dev tools. With dynamic cache busting URLs, filenames would change from one run to the next.

fixes #1145
  • Loading branch information
Shane Tomlinson committed Jun 19, 2014
1 parent a13a8eb commit ffc0de8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions server/templates/pages/src/mocha.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
-->
<script src="/bower_components/mocha/mocha.js"></script>
<script data-main="main" src="/bower_components/requirejs/require.js"></script>
<script>
// Avoid caching files that are loaded with Require.JS
require.config({
urlArgs: "bust=" + (new Date()).getTime()
});
</script>
{{#check_coverage}}
<!--
Blanket rewrites the JS to do analysis, rendering the
Expand Down

0 comments on commit ffc0de8

Please sign in to comment.