Skip to main content
If updates to your website aren’t appearing in your native app built with Median, the issue is typically related to webview caching. Median apps respect the same cache headers as modern browsers. This means your web server controls how long content is cached within the app. In most cases, updates will reflect after a few minutes or a page refresh. However, if you’re still not seeing the latest changes, it’s likely due to aggressive cache headers or stale cached assets.

Implementation guide

Website configuration

To force the app to load the latest version of your assets (for example, JavaScript or CSS files), you can use file versioning like:
Updating the filename ensures the browser and app will request a fresh version from the server.

JavaScript Bridge method

Median provides a JavaScript command to programmatically clear the webview cache. This is especially useful during development or when troubleshooting cache-related display issues. To clear the cache, call:

Android-only

Some configuration options in appConfig.json apply specifically to Android apps. These settings allow you to control WebView behavior, including caching.

Automatically clear cache on exit

Median includes a configuration option for Android apps to clear the WebView cache every time the app exits. To enable this, add the following in the appConfig.json:

Configure WebView cache mode

You can also control how the Android WebView handles caching by setting the cacheMode option. Add the following under the general section in your appConfig.json:
Available configuration options:

Frequently asked questions

Your app may still be loading cached website assets, such as older JavaScript, CSS, image, or HTML files. Median apps respect your website’s cache headers, so your server configuration controls how long those assets remain cached in the app.
Usually, no. Clearing the cache too often can reduce performance because the app may need to re-download assets that would otherwise load quickly from cache. For production apps, asset versioning and correct cache headers are usually better long-term solutions.
Don’t assume either way. This page doesn’t confirm whether cookies, local storage, or authentication sessions are affected, so test sign-in behavior in your app before using this in production.
Use default for normal production behavior. Use no_cache when you need Android to always load from the network during testing or troubleshooting. Use cache_only only for specialized offline scenarios, and use cache_else_network when cached content should be preferred if available.
Last modified on November 7, 2026