You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use the default public disk for storing assets, assign them with an assets field to an entry and manipulate them with Glide. We noticed that Glide handles the assets via the http route like external images. This is not ideal because these listeners clear the Glide cache only for the asset route. This means e.g. that changing the focal point deletes and rebuilds the cached images in storage/statamic/glide/containers but in the frontend, the images are cached in storage/statamic/glide/http. Therefore the new focus point does not show up in the frontend.
We can fix that by removing env('APP_URL') from the url for the public disk in config/filesystems.php:
However, it would be cool if Glide could check if the image gets served from the same URL, so the above change would not be necessary and it would work with standard Laravel.
How to reproduce
Use the public disk for the assets container
Add an assets field images to the pages blueprint
Link an image to an entry
Add {{ images }}{{ glide:url format="webp" }}{{ /images }} to your view
Note that the URL starts with /img/http instead of /img/asset
Bug description
We use the default
public
disk for storing assets, assign them with an assets field to an entry and manipulate them with Glide. We noticed that Glide handles the assets via thehttp
route like external images. This is not ideal because these listeners clear the Glide cache only for theasset
route. This means e.g. that changing the focal point deletes and rebuilds the cached images instorage/statamic/glide/containers
but in the frontend, the images are cached instorage/statamic/glide/http
. Therefore the new focus point does not show up in the frontend.We can fix that by removing
env('APP_URL')
from theurl
for the public disk inconfig/filesystems.php
:However, it would be cool if Glide could check if the image gets served from the same URL, so the above change would not be necessary and it would work with standard Laravel.
How to reproduce
public
disk for the assets containerimages
to the pages blueprint{{ images }}{{ glide:url format="webp" }}{{ /images }}
to your view/img/http
instead of/img/asset
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: