Skip to content Skip to sidebar Skip to footer

Force Browser To Clear Cache In Angular Environment

There is a popular question on how to force-clear the cache of the browser in a VanillaJS application, with the general consensus being, setting the name of the .js-script or the s

Solution 1:

By setting your build command to target production ng build --target=production, the cli automatically hashes your js files. Here are the docs You can also set the command manually if you wanted it on dev ng build --output-hashing=all


Post a Comment for "Force Browser To Clear Cache In Angular Environment"