G
G
Greg Plitt2020-12-10 11:43:46
caching
Greg Plitt, 2020-12-10 11:43:46

What to do if robots.txt is cached on cms Wordpress?

This is not the first time I have come across sites where, no matter how you update the original robots.txt file, it still displays without edits. But if I open it as robots.txt ?nocache , I see the file I need.
Tried to clear the cache on the WP side with all the plugins I found, there is nothing that definitely helps.
How to be in this situation? What needs to be done so that robots.txt is displayed immediately after making changes to it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Bushaev, 2020-12-10
@denIcmy

win+R -> cmd -> curl domain.com/robots.txt
See content. If it is cached even there, then first look at the caching plugins, if they are not there, then the nginx caching policies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question