Skip to content

Commit

Permalink
.htaccess
Browse files Browse the repository at this point in the history
<FilesMatch "\.wasm$">
  AddType application/wasm .wasm
</FilesMatch>
  • Loading branch information
pannous committed Nov 25, 2024
1 parent 91f2f85 commit a240b92
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</FilesMatch>
<FilesMatch "\.wasm$">
AddType application/wasm .wasm
Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</FilesMatch>
7 changes: 5 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,12 @@ <h2>A new programming language for Wasm</h2>
<button onclick="compile_and_run(editor.getValue())">RUN!</button>
<button onclick="results.value=''">CLEAR</button>
<!-- spacer -->
<div style="width: 250px;display: inline-block; "></div>
<div style="width: 242px;display: inline-block; "></div>
<!-- <button onclick="download_file(editor.getValue(), 'source.wasp', 'wasp')" title="download wasp">💾⤓ source.wasp</button>-->
<button onclick="download_file(wasm_buffer, 'compiled.wasm', 'wasm')" title="download wasm">📥 compiled.wasm</button>
<button onclick="download_file(wasm_buffer, 'compiled.wasm', 'wasm')" title="download compiled.wasm">📥 download wasm</button>
<button onclick="deploy_to_fermyon_spin()" title="deploy as serverless handler to fermyon spin">
<img src="https://www.fermyon.com/static/image/events/spin-icon-dot.png" style="height: 1em;vertical-align: middle;"/> deploy to spin
</button>
<br/>
<textarea cols="80" id="results" placeholder="RESULT… press run to compile" rows="14"></textarea>

Expand Down

0 comments on commit a240b92

Please sign in to comment.