Skip to content

Clear cache when serving NWB files to Neurosift and other services #974

@rly

Description

@rly

Describe the issue

A user I am working with was iteratively creating NWB files and using NWB GUIDE > Neurosift to visualize the file. The NWB file is only ~75 MB. The user would modify the file but the changes were not reflected in NWB GUIDE > Neurosift. The file was indeed changed as confirmed by PyNWB. It turns out that Electron has a cache and something, probably the NWB file, is being cached and served when the file with the same path (but different create/modify date and size) is requested.

See https://stackoverflow.com/a/44675132/20177

Deleting /Users/<user>/Library/Application Support/NWB GUIDE/Cache was insufficient, but deleting /Users/<user>/Library/Application Support/NWB GUIDE/ worked.

It might be that if the file is much larger, it would not be cached.

GUIDE should clear the Electron cache (or not use the cache) when serving NWB files to Neurosift and other services like DANDI Upload.

Steps to Reproduce

^

Operating System

Mac

GUIDE Version

1.0.4

Code of Conduct

Yes

Did you confirm this issue was not already reported?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions