Google Search Console is warning me about Mobile Friendly errors. But all the errors are coming from the assets folder where I keep my CSS and JS files. Can anyone can help explain these errors?

enter image description here

  • @Vivoth Are the errors on the actual .js and .css files themselves, or only on the folder containing them? It could be that your server is serving a directory listing when you go to the folder's URL, and the directory listing page itself is not mobile-friendly. – Maximillian Laumeister Dec 14 '18 at 4:05
  • @MaximillianLaumeister, It's not about .js or .css file error. It could be the server is serving a directory listing when I go to the folder's URL it list all file in directory. If so, what is the best practice to solve the problem ? – Vivoth Dec 14 '18 at 4:14
  • 1
    @Vivoth The simplest solution would be to disable directory listing for those folders. The process is different depending on what web server software you are using, but try Google searching "disable directory listing [name of server]". – Maximillian Laumeister Dec 14 '18 at 4:16
  • @MaximillianLaumeister, I will try to use .htaccess file to disable it. I will get back if it work. Thank for your comment – Vivoth Dec 14 '18 at 4:19
  • 1
    @Vivoth From my quick Google search, you should have Options -Indexes in the .htaccess file at the root of your website. – Maximillian Laumeister Dec 14 '18 at 4:21