Local server not reflecting updated files

后端 未结 5 1852
感动是毒
感动是毒 2021-02-13 17:42

I\'m fairly new at user local servers. I\'m using the http-server which is a package from Node. I\'m using it to host an HTML5 game using the Phaser library. I have image assets

5条回答
  •  情话喂你
    2021-02-13 18:13

    There's a option -c that refers to the cache time (max-age) in seconds [3600]

    (e.g. -c10 for 10 seconds).

    To disable caching, use http-server -c-1

    You can see more information by enter http-server -h (for help)

提交回复
热议问题