What are differences between location and refresh in codeginiter redirect function?
问题 I would like to know what are differences between location and referesh in Codeigniter redirect() function? https://www.codeigniter.com/user_guide/helpers/url_helper.html 回答1: It does not have to do only with Codeigniter. These are the 2 methods that you can use to reload (or redirect) a page. With Location: header you are sending a 3xx status code (usually 301 or 302) to the client's browser which usually indicates that the content has temporarily moved. Using the appropriate code will give