Question / Help Question about OBS browser caching

Are any of the OBS web browser cache files being stored somewhere besides %appdata%\obs-studio\plugin_config\obs-browser\cache?

Is it possible to disable all web browser caching to force browser to always reload every source and referenced file?

I'm running Windows 10 Pro (1607) and OBS Studio (18.0.1).


---
Here's more background:

I'm using a webserver to host an html source, and then with javascript I'm periodically querying external files and if they've changed, javascript either updates the contents of the html source or redirects to other html pages. (Purpose of this is so that I can programatically control what's onscreen without having to manually change scenes or sources).

Some of the times this is working, but other times OBS browser is using cached versions of the external files rather than the up-to-date versions.

Based on how I'm using the html source, I can't "Shutdown source when not visible" or "Refresh browser when scene becomes active". And "Refresh cache of current page" also isn't practical (and doesn't seem to work anyway to refresh all external files the current page references).

What I've found is that if I delete the contents of %appdata%\obs-studio\plugin_config\obs-browser\cache before starting OBS that usually solves the problem. But sometimes, I need to open and close OBS several times and delete the cache several times before the cache is fully deleted and browser starts referencing the newer files.

And if things stop working during the stream, it isn't possible to delete cache without stopping and starting the whole stream.

Any ideas?

Thanks!
 

zyrjello

New Member
Sorry for the thread necro, but I ran into this issue today and thought future generations could benefit.

I've found a sort of workaround for this problem that I believe will be sufficient for my use case:

- Add a browser source that contains the asset that your page requires. Put it in some otherwise empty scene that you'll never use.
- When you start OBS, go into that source's properties and click the "Refresh cache of current page" button.

This seems to have allowed my page to get a clean copy of the asset. Unfortunately, you'll probably have to do it once for each asset, so I don't know if it will scale to your use case.

I'd definitely like to see the option to clear the browser cache when OBS starts up.
 
Top