I have redirect rules on my bucket with enable website hosting
<RoutingRules>
<RoutingRule>
<Condition>
<KeyPrefixEquals>avatar/</KeyPrefixEquals>
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<HostName>host</HostName>
<ReplaceKeyWith>avatar/default-avatar.jpg</ReplaceKeyWith>
</Redirect>
</RoutingRule>
when request host/avatar/user_id and this user doesn't have avatar it will redirect to host/avatar/default-avatar.jpg. when i upload new avatar for user and request host/avatar/user_id it will again redirect to default avatar. clear cache help. maybe someone can suggest workaround?
Aucun commentaire:
Enregistrer un commentaire