To allow the robots to crawl all CSS and JS files we have used the following code:
Allow: /*.css$
Allow: /*.js$
But, some CSS and JS are still being blocked as stated when using the mobile friendly test from Google.
Does the location of the line of code in the robots.txt file matter?
Are there instances were the line of code will be ignored?
Allow
anything, since that is the default action. The fact that you haveAllow
directives to begin with suggests that you have otherDisallow
directives. We would need to see your entirerobots.txt
file. It's quite possible that you have more specificDisallow
directives that are taking priority.