Skip to content

Tornado server loads cached javascript #5

@aiwhoo

Description

@aiwhoo

Describe the bug
Tornado server loads cached javascript. Any changes to simple_continous_module.js require manual cache removal or to go incognito.

Expected behavior
javascript code should be loaded fresh on each run

To Reproduce
hardcode the color red, run the program and view on browser, then hard code color blue in:
https://github.com/projectmesa/mesa/blob/main/examples/boid_flockers/boid_flockers/simple_continuous_canvas.js

Additional context
Using Chrome on Mac OS.

This may be useful https://stackoverflow.com/questions/12031007/disable-static-file-caching-in-tornado and somewhere around here should be modified
https://github.com/projectmesa/mesa/blob/main/mesa/visualization/ModularVisualization.py#L243

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions