I have one page that has one pdf on it, with the same content. The pdf is served from Amazon AWS S3, how can I add the rel canonical to the S3 to avoid duplicate content? thanks!
EDIT
And with cloudfront can I do this?
I have one page that has one pdf on it, with the same content. The pdf is served from Amazon AWS S3, how can I add the rel canonical to the S3 to avoid duplicate content? thanks!
EDIT
And with cloudfront can I do this?
You’d have to send the HTTP header Link
when delivering the PDF:
Link: <http://example.com/your-canonical-page>; rel="canonical"
https://www.rfc-editor.org/rfc/rfc5988#section-5
Amazon S3 seems to offer static content hosting only, so there is no way to set this header.