Repository: flutter
Issue: release web app fails to load AssetImage
Labels: tool,platform-web,a: build,has reproducible steps,P2,found in release: 2.2,found in release: 2.5,team-web,triaged-web

clone `git@github.com:ldelossa/blogflutter.git`
run "flutter run" - notice current rendered elements such as avatar image

run "flutter run --release" - notice a stale version of the blog is seen with no avatar image.

## Logs

<details>
<summary>Logs
</summary>

<!--
[  +36 ms] executing: uname -m
[  +18 ms] Exit code 0 from: uname -m
[        ] x86_64
[   +3 ms] executing: [/usr/local/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +4 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] f4abaa0735eba4dfd8f33f73363911d63931fe03
[        ] executing: [/usr/local/flutter/] git tag --points-at f4abaa0735eba4dfd8f33f73363911d63931fe03
[  +10 ms] Exit code 0 from: git tag --points-at f4abaa0735eba4dfd8f33f73363911d63931fe03
[        ] 2.2.3
[   +3 ms] executing: [/usr/local/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/usr/local/flutter/] git ls-remote --get-url origin
[   +4 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] ssh://git@github.com/flutter/flutter.git
[  +45 ms] Unable to locate an Android SDK.
[   +4 ms] executing: [/usr/local/flutter/] git rev-parse --abbrev-ref HEAD
[   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +41 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +29 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[  +31 ms] Skipping pub get: version match.
[  +22 ms] Found plugin path_provider at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/
[   +2 ms] Found plugin path_provider_linux at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/
[   +2 ms] Found plugin path_provider_macos at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+8/
[   +2 ms] Found plugin path_provider_windows at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/
[   +6 ms] Found plugin url_launcher at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/
[   +1 ms] Found plugin url_launcher_linux at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+4/
[        ] Found plugin url_launcher_macos at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+9/
[   +1 ms] Found plugin url_launcher_web at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.5+3/
[        ] Found plugin url_launcher_windows at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.0.1+3/
[  +54 ms] Found plugin path_provider at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/
[        ] Found plugin path_provider_linux at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/
[        ] Found plugin path_provider_macos at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+8/
[   +1 ms] Found plugin path_provider_windows at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/
[   +3 ms] Found plugin url_launcher at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/
[   +1 ms] Found plugin url_launcher_linux at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+4/
[   +1 ms] Found plugin url_launcher_macos at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+9/
[   +1 ms] Found plugin url_launcher_web at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.5+3/
[        ] Found plugin url_launcher_windows at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.0.1+3/
[   +7 ms] Generating
/home/louis/git/flutter/blogflutter/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +39 ms] Building without sound null safety
[        ] For more information see https://dart.dev/null-safety/unsound-null-safety
[  +10 ms] Found plugin path_provider at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/
[        ] Found plugin path_provider_linux at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/
[        ] Found plugin path_provider_macos at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+8/
[        ] Found plugin path_provider_windows at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/
[   +3 ms] Found plugin url_launcher at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/
[        ] Found plugin url_launcher_linux at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+4/
[        ] Found plugin url_launcher_macos at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+9/
[        ] Found plugin url_launcher_web at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.5+3/
[        ] Found plugin url_launcher_windows at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.0.1+3/
[   +9 ms] Found plugin path_provider at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/
[        ] Found plugin path_provider_linux at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/
[        ] Found plugin path_provider_macos at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+8/
[        ] Found plugin path_provider_windows at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/
[   +3 ms] Found plugin url_launcher at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.7.10/
[        ] Found plugin url_launcher_linux at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+4/
[        ] Found plugin url_launcher_macos at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+9/
[        ] Found plugin url_launcher_web at /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.5+3/
[        ] Found plugin url_launcher_windows at
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.0.1+3/
[   +2 ms] Compiling lib/main.dart for the Web...
[   +3 ms] Initializing file store
[   +3 ms] Done initializing file store
[  +34 ms] Skipping target: web_entrypoint
[   +1 ms] Skipping target: gen_localizations
[ +195 ms] Skipping target: dart2js
[   +4 ms] invalidated build due to missing files:
/home/louis/git/flutter/blogflutter/DOES_NOT_EXIST_RERUN_FOR_WILDCARD784937881
[ +114 ms] web_release_bundle: Starting due to {InvalidatedReasonKind.inputMissing: The following inputs were missing:
/home/louis/git/flutter/blogflutter/DOES_NOT_EXIST_RERUN_FOR_WILDCARD784937881, InvalidatedReasonKind.inputChanged: The
following inputs have updated contents: build/web/.last_build_id,build/web/flutter_service_worker.js}
[  +63 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see
#56466.
[  +30 ms] web_release_bundle: Complete
[ +106 ms] web_service_worker: Starting due to {InvalidatedReasonKind.outputChanged: The following outputs have updated
contents: build/web/flutter_service_worker.js, InvalidatedReasonKind.inputChanged: The following inputs have updated contents:
build/web/main.dart.js.map}
[ +115 ms] web_service_worker: Complete
[        ] Persisting file store
[   +4 ms] Done persisting file store
[   +8 ms] Compiling lib/main.dart for the Web... (completed in 682ms)
[        ] "flutter web" took 962ms.
[  +32 ms] ensureAnalyticsSent: 30ms
[        ] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 0
-->

```
```

<!--❯ flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on Linux, locale en_US.UTF-8)
    • Flutter version 2.2.3 at /usr/local/flutter
    • Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = chromium-browser

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Chromium 91.0.4472.164 Fedora Project
 -->

```
```

</details>

Is flutter doing some kind of caching in the build tool? I have done everything including removing the the repo entirely and cloning back on my machine.