Hi everyone!
I would like to expose a problem I'm facing with AppEngine services.
I have a Python application, based on Rest services.
I have one service which is in charge of upload a document and store it into a Cloud Storage bucket, create and identifier and store such identifier in a database,
For example:
POST /uploaddocument
Request body:
{
"base64document":"base64_encoded_document"
}
Response:
{
"document_id":"abc1234def5678"
}
Now, I have another service which retrieve such document from the storage, like this:
GET /retrievedocument?document_id=abc1234def5678
This service returns an "application/pdf" mime type.
For the moment everything works perfect. However, if I upload a new version of this document, the service "/retrievedocument" returns the old version, like if it would be cached, and request is not being processed by my service because I don't see any logs about this request. It is like this request would being served by a CDN or something like this, not by my application.
In addition, if I wait some time (more than an hour) then the request is again processed by my application and return the correct version of the document, like if cache would be expired.
I would like my service to be returning always the latest version of the document, not a cached one.
Have anyone of you faced this kind of problem any time?
Does anyone know how to solve it?
Thank you!
Kind regards,
Iñigo.