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

Storefront images disapear #401

Open
magpieuk opened this issue Dec 20, 2024 · 2 comments · May be fixed by #403
Open

Storefront images disapear #401

magpieuk opened this issue Dec 20, 2024 · 2 comments · May be fixed by #403
Labels
bug Something isn't working

Comments

@magpieuk
Copy link

Images on store front disappear after a while.

Solidus Version:4.4.2

When deployed to production environment with caching enabled, images disappear after a while.

src: image_tag image.url(size), default_options.merge(options)

image_tag url_for(image.attachment.variant(size)), default_options.merge(options)

@magpieuk magpieuk added the bug Something isn't working label Dec 20, 2024
@magpieuk magpieuk linked a pull request Dec 20, 2024 that will close this issue
@fthobe
Copy link
Contributor

fthobe commented Dec 20, 2024

Hey, could you add some information:

  • are the references to the images disappearing from code or is the image file not served?
  • are you using a CDN or reverse proxy (cloudflare or anything)?
  • are the images still reachable via direct link?
  • are you using any local webserver to reverse proxy such as nginx?

@magpieuk
Copy link
Author

magpieuk commented Dec 20, 2024

Image is not being served and appears as a broken link.

.url generates
https://hostname/rails/active_storage/disk/##REF##

url_for generates

https://hostname/rails/active_storage/representations/redirect/##REF##

Storage is local to the server using the Disk service.

No proxies are involved. Web server is Apache2/Passenger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants