You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Angular 17 and Cloudflare for caching. I have started noticing that after every deployment in the production, the page comes black until the caching period is over.
When visiting the built script js file, it gives a 404 page, but after appending a query to the URL, it is working fine
# not working
https://app.example.io/runtime.4bc2f68e0b409d29.js
# Working
https://app.example.io/runtime.4bc2f68e0b409d29.js?v9.0.1
I tried checking generating build after making changes to the file but the file name generated is always the same
Also tried passing --output-hashing all to the build command but the file names are still the same.
One way to implement Cache Businting is by appending query parameters to build every time but is there any angular way to do it?
Using ng build to build the project. And here are the screenshots of the build generated by changing the version number to 0.0.1, 1.0.1, and 1.0.2 respectively.
The file names of main.xxx.js, runtime and polyfills files are the same.
This should no longer be an issue when using the esbuild based builders. Please migrate to the esbuild based application builder and if the problem persists please open a new issue.
Command
build
Description
Using Angular 17 and Cloudflare for caching. I have started noticing that after every deployment in the production, the page comes black until the caching period is over.
When visiting the built script js file, it gives a 404 page, but after appending a query to the URL, it is working fine
I tried checking generating build after making changes to the file but the file name generated is always the same
Also tried passing
--output-hashing all
to the build command but the file names are still the same.One way to implement Cache Businting is by appending query parameters to build every time but is there any angular way to do it?
Following is the
angular.json
content.Using
ng build
to build the project. And here are the screenshots of the build generated by changing the version number to0.0.1
,1.0.1
, and1.0.2
respectively.The file names of
main.xxx.js
,runtime
andpolyfills
files are the same.A similar issue has been reported here
#3769 (comment)
This is very frustrating as the customers repeatedly keeps reporting of unresponsive application after every deployment.
Describe the solution you'd like
Ability to change the hash of the generated file on every build without changing file content.
Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: