Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHOPWARE_CDN_STRATEGY_DEFAULT seems to make no change #131

Open
teceP opened this issue Dec 7, 2023 · 0 comments
Open

SHOPWARE_CDN_STRATEGY_DEFAULT seems to make no change #131

teceP opened this issue Dec 7, 2023 · 0 comments

Comments

@teceP
Copy link

teceP commented Dec 7, 2023

We want to use a S3 Bucket for our media and thumbnail directory.

I configured a rewrite (with Istio), so every Request to /media or /thumbnail will be proxied to our public S3 Bucket.

The problem is, that the file urls has not matching path to the actual S3 location.
Example, this is the rendered URL in the HTML: ..../thumbnail/0b/fe/e7/1695201649/9881885-1_1920x1920.jpg
But it should be a different timestamp.

I read that there is something like a "strategy" to prevent pictures get cached, so the timestamp will change from time to time (or on a specific action)?
Since we upload our files to the S3 Bucket, how can those picture paths get changed on time in the S3 Bucket?
If we use the filesystem configuration for shopware, all picture paths in the HTML will uncover our S3 Bucket URLs. It looks better if the pictures are also loaded with the same URL as our shop has. Thats the reason why we want use the rewrite-solution currently.

I searched for a solution and found the SHOPWARE_CDN_STRATEGY_DEFAULT env variable, but there is no change at all for the URL composition for our picture links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant