my site was built using Lightning Drupal distribution. The Drupal version is 8.9.18.
I have changed Public file system path from sites/default/files to sites/mysite/files. and i have copied all of my files from sites/default/files to the changed path sites/mysite/files. and i have no file issues after this. But in some random times for anonymous users images not displaying. i get to know after debugging the file path is coming as sites/default/files instead of sites/mysite/files. after clearing cache the issue is automatically fixed and images are displays for anonymous users. But now i have view blocks on my homepage which are displaying correctly for admin users(file path is sites/mysite/files) but not for the anonymous users(file path is coming as sites/default/files). this time cache rebuild also not able to fix the issue. i have checked all my user & anonymous users permissions they all have sufficient permissions to view the images. I don’t know why my images are having different path for anonymous users.