YoricW's Recent Forum Activity

  • I also tried to use the AJAX plugin with the Set Request Header Actions:

    but this did not work either, same thing happens:

    1. shows blue cached darts

    2. I clear browser cache

    3. shows red new darts

  • The other two ways I thought about clearing the cache were:

    1. using the browser plugin to execute javascript to clear the cache

    2. somehow editing the exported index.html myself to clear the cache

    in either instance, the idea would be to add an http response header like this:

    Cache-Control: content="no-cache, no-store, must-revalidate"

    but how to do the syntax around this or where to do this I don't know

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi everyone,

    How can I clear the browser cache on startup of my HTML game?

    The reason I need to do this is for runtime theming:

    if I want to replace my blue dart animation

    with a red dart animation

    (without having to re-export my game)

    I just overwrite the blue 1-7.png's with red 1-7.png's

    but I have to clear my browser's cache before this works.

    (don't clear cache = blue darts still)

    (do clear cache = red darts)

    Is there any way with the browser plugin or anything else

    that can allow me to make sure the game pulls from file every time?

    thank you for any input

YoricW's avatar

YoricW

Member since 8 Feb, 2022

None one is following YoricW yet!

Trophy Case

  • 2-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

4/44
How to earn trophies