Docker compose up --build does not rebuilds the static files

Hi!!

When I do any changes in my .html file and I run docker compose up --build , it builds the image perfectly and the web page shows the result as expected
But when I do any changes in my .css file and try to run docker compose up --build command again, it does not rebuilds the static files . Same case is for image files also.
What possibly could be the reason for this ?
Any help is appreciable!!

Thanks in Advance!!
Anish Tulsyan!!

Potential workaround: docker compose up --build --no-cache