KITASENJU DESIGN BLOG

memo, html, javascript, unity

cache control with random value in pug

pugでdeployごとにキャッシュをしなくする

- var cache = Math.random()
  link(rel="stylesheet" href=`./css/indexKira2.processed.css?${cache}` id="css4")
  link(rel="stylesheet" href=`./css/indexKira.processed.css?${cache}` id="css3")
  link(rel="stylesheet" href=`./css/indexInvert.processed.css?${cache}` id="css2")
  link(rel="stylesheet" href=`./css/index.processed.css?${cache}` id="css1")
  script(src=`./app.processed.js?${cache}`)

    <link rel="stylesheet" href="./css/indexKira2.processed.css?0.8949974346207563" id="css4"/>
    <link rel="stylesheet" href="./css/indexKira.processed.css?0.8949974346207563" id="css3"/>
    <link rel="stylesheet" href="./css/indexInvert.processed.css?0.8949974346207563" id="css2"/>
    <link rel="stylesheet" href="./css/index.processed.css?0.8949974346207563" id="css1"/>
    <script src="./app.processed.js?0.8949974346207563"></script>

"FOOTER"