I have a Blog where each page have a static version served with dynamic url
mysite.com/mypage?logged=false over HTTP, and a dynamic version served with dynamic url
mysite.com/mypage?logged=true over HTTPS.
The intent is allowing the static version to be cached as much as possible to reduce pressure on the server by allowing browsers and proxies to copy cached versions for at most few days. At the same time I need a non-cached version that logged in users can use to edit blogpost and see changes in realtime.
http:\\mydomain.com\X?logged=false page have a
Login button that redirect to
HTTPS:\\mydomain.com\X?LOGGED=TRUE (differencies uppercased).
All failed login attemps redirect to HTTP version of the page. (a message is shown that password is wrong and automatic redirect happens within few seconds).
Sould I put a "noIndex" metatag on the HTTP copy or on the HTTPS copy of the page? Do note that the "Share" buttons will spread HTTP links.
For this question I'm asking where I should put the "noIndex" metatag in order to let google crawlers canonicize the urls of my website so that content is not viewed as duplicated.