They’re not calculated, it’s just how many times the URL is requested by WordPress. If you have a cache, or your browser is using it’s own cache, then it may not request the URL.
HTTP 302 shouldn’t be cached at all unless there’s also a Cache-Control or Expires header returned by the web server. According to RFC 2616, section 10.3.3 302 Found
Headers are:
X-Redirect-Agent: redirection
Cache-Control: no-cache
Pragma: no-cache
No Expires header present.
Is there any way to add explicits headers to redirects in your plugin?
The key word there is *should*, not *must*.
You can add headers from the Site page.
I’m not sure what you mean by “You can add headers from the Site page“.
The page containing the link is cached. Clicking on the href (redirection link) user is redirected to an external site.
Here are the steps:
1 Home page http://www.my-website.com/
2 Redirection link http://www.my-website.com/redirect-to-whatever
3 Destination http://www.destination-website.com
Step 2 is cached by the browser and I cannot set heders there.
On this stackoverflow discussion there is abit more info about *should* and *must*.
Sure, the difference between should and must is fine, but it’s not something the plugin need be concerned about.
You can add headers from the Site page inside the Redirection plugin.
I’ll give it a try, thanks.