This commit is contained in:
OctoSpacc 2024-04-27 10:31:35 +02:00
parent 4e2fcedcb9
commit 8b86de049b
2 changed files with 9 additions and 3 deletions

View File

@ -3,7 +3,13 @@ const cachables = {
"//": "networkFirst",
};
const checkUrlCaching = (url) => (cachables[url] || cachables[`/${url.split('://').slice(1).join('://').split('/')[1]}/`]);
const checkUrlCaching = (url) => {
let caching = (cachables[url] || cachables[`/${url.split('://').slice(1).join('://').split('/')[1]}/`]);
if (caching === undefined) {
caching = cachables['//'];
};
return caching;
};
const putResponseInCache = (request, response) => {
if (response.ok) {

View File

@ -26,10 +26,10 @@
<h5>At the moment, it's still kind of an humble hub...</h5>
<h6>(But every once in a while I do make a new link appear below!)</h6>
</div>
<br/>
<br/><br/>
<div style="font-size: x-small">
<audio src="https://octospacc.gitlab.io/Web-ThirdParty-Unknown/Assets/Media/MightyFinalFightSlums.mp3" controls muted loop autoplay></audio>
<p>Site Theme Song: <i>Spirit of <i>Famiclone Selection Menu</i></p>
<p>Theme Song: <i><a target="_blank" href="https://www.youtube.com/watch?v=TwqutMIfc94">Spirit of Famiclone Selection Menu</a></i></p>
</div>
<br/><br/><br/>
<div id="Links"><div>