[web] - Cache not clearing after update

This issue has been created since 2022-09-22.

I don't if there's a way to do so or if i'm having a bug on my app, but after i update the version on pubspec.yaml, like:

from: version: 1.0.0+1
to: version: 1.0.1+2

The browser doesn't see this site as a new one, so it keeps the old cache, creating some bugs on the app (if something that is a breaking change was implemented). Is there a way of forcing the browser to clean the cache after an update?

my doctor:

[√] Flutter (Channel stable, 3.3.2, on Microsoft Windows [versao 10.0.22000.978], locale pt-BR)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2021.2)
[√] VS Code (version 1.71.2)
[√] Connected device (3 available)
[√] HTTP Host Availability

! Doctor found issues in 1 category.
danagbemava-nc wrote this answer on 2022-09-23

Hi @Macacoazul01, this is currently not supported but there's a feature request to add this feature being tracked in #63500.

Kindly follow up in the issue linked for updates.

Closing from here as duplicate.

Thank you

More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2022-10-05
Star Count 145512
Watcher Count 3569
Fork Count 23398
Issue Count 11205

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Legend Arceus model preview 1 2022-03-26 2022-05-28
animal crossing new horizons crash 4 2022-03-21 2022-09-13
Pokémon Legends Arceus Support 1 2022-03-18 2022-09-13
Trying to convert to Little Endian 1 2022-03-25 2022-09-22
[QUESTION]SwaggerJsonSerializer或ObjectSerializer是不是不计划支持了? 4 2022-05-24 2022-09-28
Smooth shading for meshes 0 2022-07-14 2022-08-02
It seems that not work when only enum type changes 3 2021-08-25 2022-09-28
Add support for api e2e testing 1 2021-11-12 2022-09-05
Displaying latex tables in for loop 0 2021-06-23 2022-09-27
Is this the expected quality after training 800k iterations? 0 2022-05-09 2022-09-28
Add support for mermaid plugin 0 2020-01-17 2022-09-24
syntax highlighting and snippet completion for injected languages 2 2022-01-22 2022-05-26
Location not working 3 2022-03-06 2022-08-31
Contacts disappear from Phone 5 2022-03-04 2022-08-09
D-Bus method "StartScreenshotFor3rd " cannot save screenshots with specific filename 3 2021-02-17 2022-08-15
Let tree-view client control highlighted item 2 2021-10-11 2022-08-20
UNKNOWN_CODE_PLEASE_REPORT: JSON syntax error at byte 0 of object 1. Error: Invalid value. Contents just before that byte: 1 2021-10-05 2022-09-19
GeoIP (Geo Point) Not Generated with Elastic v8.0.0 13 2022-02-14 2022-09-02
ModuleNotFoundError: No module named 'top_pool' 7 2019-10-10 2022-09-30
gameserverselector documentation mismatch 1 2022-02-22 2022-10-03
new versions should be larger than 5.0 1 2021-07-23 2022-09-28
Raise an error if gradient of QNode returning `qml.sample()` is computed 0 2022-05-10 2022-09-16
A question about SQL injection 3 2021-07-21 2022-10-03
Using RTSP Camera instead of the WebCam 0 2021-01-03 2022-08-04
Add post button partially hidden when using rtl-language in Data mode. 10 2021-07-12 2022-10-01
CI job with code coverage is failing (yet again) 4 2021-10-25 2022-10-02
AWS CodeBuild with CodePipeline NoMethodError 8 2021-01-11 2022-10-03
Increase open file limit for sshfs (default on macOS is only 256) 0 2022-05-25 2022-10-02
No suitable Keytab error 3 2021-09-24 2022-09-13
CSS styling 5 2021-03-11 2022-01-01
Review read-only states pattern guidance 0 2022-06-02 2022-07-25
Fetch APIs - Inconsistent with CanIUse 1 2021-09-10 2022-10-01
Is there a declared license for this? 0 2021-03-15 2022-09-19
[backport v2.7-branch] backport of #40098 failed 1 2021-11-10 2022-09-19
Transparency problem during making GIF from PNG on Pillow 3 2022-09-25 2022-09-28
dynamic internal junction waiting position based on width and posLat 0 2022-01-07 2022-09-30
Session unlock after simulated swaylock crash 1 2021-04-21 2022-09-15
Gradle build failed with test-resources 1 2022-08-25 2022-10-01
es8388 i2c address 0x20 or 0x10? (AUD-3789) 1 2022-04-27 2022-09-19
Clicking the browser’s back button does not work as expected 7 2021-11-21 2022-02-22
Vertical alignment issue starting with v3.17 11 2021-03-30 2022-07-10
Travis/Readme: adjust for minimum requirement of WPCS 2.2.0 0 2019-12-01 2022-09-10
[Bug Report] Not support React 18 with TS 1 2022-04-27 2022-09-28
Error when restarting the cluster and changing the environment 3 2022-04-19 2022-08-28
Mvsep now integrates Demucs in its backend 2 2022-04-10 2022-09-27
Unexpected End Of File 1 2021-07-15 2022-10-02
Incomplete / confusing documentation 1 2017-09-05 2022-09-07
无法通过页面创建自定义模型实例和集群实例关系 2 2021-08-16 2022-10-02
AgentManager-SSLHandshakeHandler SSL error 6 2021-12-23 2022-09-27
[pointer_interceptor] suppressed new linter warnings 1 2021-07-29 2022-09-26