I have several millions of image files on a S3 storage bucket and I know they will never change. To optimize requests, I decided to add an expires header to my files (as explained here : google page speed rules)
The process of adding the headers to all my files is long and expensive so I'd prefer not to repeat it. However, the Http Rfc recommends to set Expires header with a max expiration date of one year in the future :
HTTP/1.1 servers SHOULD NOT send Expires dates more than one year in the future
...which means I would have to update my headers in one year.
My question is :
Can I set my headers values to a very far date (e.g: 01-01-2020) and go against the RFC recommendation ? What is the risk of doing so ?
Is there another solution to tell the clients that request my files to cache them for an infinite duration, without having to update anything on my amazon S3 storage ?