added 'spa-asset-test' config option. Fixes #36

This commit is contained in:
Lloyd Brookes
2016-06-18 11:39:25 +01:00
parent f21300380a
commit 9dcccec177
5 changed files with 13 additions and 9 deletions

View File

@ -1,3 +1,4 @@
{
"spa": "index.html"
"spa": "index.html",
"no-cache": true
}

BIN
example/spa/image.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -7,6 +7,8 @@
<li><a href="/login">/login</a></li>
<li><a href="/search">/search</a></li>
</ul>
<p>Found asset: <img src="image.jpg" /></p>
<p>Missing asset (should 404): <img src="sdafsadf.jpg" /></p>
<script>
document.querySelector('h2 span').textContent = window.location.pathname
</script>