Jump to content

Images not showing on mobile


uliverse
 Share

Recommended Posts

Hi.

In my template I call images the standard way ($image = $event_item->page_image->size(640, 480, $options); $options are defined as well in the template, of course. Caching is enabled for the template in use.

On desktop this works normally. But on mobile browsers I get strange behaviour: after changing an image on a page, the new image shows up on desktop, but not on mobile. Only after clearing cache (PageRender module) the correct image shows up...

Link to comment
Share on other sites

Hi @uliverse 

Probably on the desktop you are using hard refresh or opening your page while your ChromeDev tools are opened ( where 'disable cache' is checked).

Actually, it's normal behaviour when your desktop/mobile browser is caching image, documents etc. 

There is a submodule in the ProCache module that helps in such a situation

https://processwire.com/blog/posts/pw-3.0.98-procache-buster/

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...