lencioni / SLIR

Smart Lencioni Image Resizer
MIT License
230 stars 55 forks source link

On webserver SLIR shows random images #24

Open ghost opened 10 years ago

ghost commented 10 years ago

Hi,

I installed SLIR on my local server and everything works fine. So I uploaded the site to the webserver but every time I refresh the page, all images are replaced with random images (from the cache I guess). Very strange. Any clue?

I deleted the content of the slir cache folder. The pictures are recreated, but behaviour after refresh stays the same.

Should I check a certain PHP setting on the webserver? Because all other files and settings are unchanged.

Many thanks in advance!

fiorez commented 9 years ago

Hi Rvissers ! I'm trying to use SLIR on a project and i'm having your same issue. I'm trying to create pictures inside a PHP loop, everything is fine with the old SLIR but with SLIR 2.0 it's ok only the first time, after the images are cached i guess, it all start to mess up..

Do you know a way to fix it ? I tried to set false the public static $enableRequestCache variable with no results :-(

PS: i had to look at Installing #14 issue and Comment the first 2 lines as Archia said in order to properly install it.

ghost commented 9 years ago

Hi Fiorez,

  I wasn’t able to solve it and stopped with using SLIR.

    Good luck!

  Roy

  Van: fiorez [mailto:notifications@github.com] Verzonden: donderdag 23 oktober 2014 23:39 Aan: lencioni/SLIR CC: Roy Vissers Onderwerp: Re: [SLIR] On webserver SLIR shows random images (#24)

  Hi Rvissers ! I'm trying to use SLIR on a project and i'm having your same issue. I'm trying to create pictures inside a PHP loop, everything is fine with the old SLIR but with SLIR 2.0 it's ok only the first time, after the images are cached i guess, it all start to mess up..

Do you know a way to fix it ? I tried to set false the public static $enableRequestCache variable with no results :-(

PS: i had to look at Installing #14 issue and Comment the first 2 lines as Archia said in order to properly install it.

— Reply to this email directly or view it on GitHub.

fiorez commented 9 years ago

Oook ;-)

Thanks anyway for your time Roy !

ByE!

mjau-mjau commented 8 years ago

This server happened to be Aruba?

fiorez commented 8 years ago

Hi! Thanks for replying on this old post.. Yes the web server was an Aruba one ;-) Il 18 mar 2016 7:16 AM, "Karl Ward" notifications@github.com ha scritto:

This server happened to be Aruba?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/lencioni/SLIR/issues/24#issuecomment-198223559

mjau-mjau commented 8 years ago

@fiorez interesting ;) thanks for the reply. I just did hours of diagnostics, and it seems only this host produces this issue. It outputs some intermediately cached files. Below is a reference to my diagnostics, although I assume it's not useful to you any more. Hopefully the host will look at the issue. Thanks for replying.


This problem gets stranger and stranger. I have uploaded a simple image:

Chrome (incognito without cache)

Firefox:

Opera:

What happens if I force refresh the request? It loads the correct image in all browsers.

Chrome:

Firefox:

Opera:

So why is it loading seemingly RANDOM image initially? How is that even possible that the same link shows different results? Why does the image correct itself when force-refreshed? This is essentially a mystery, but clearly some intermediate caching from your server. Conclusion: When we force-refresh, the browser is instructing your server to actually fulfill the true request (bypassing some intermediate, dysfunctional caching), where as you can see, X3 is doing it's duties correctly and serving the requested image.

Only this server does this.

vboa68 commented 8 years ago

thx Karl for your support! @fiorez: did you contact aruba for your issue? what did they answer? thx Vincenzo

fiorez commented 8 years ago

Back in those days..i didn't event try to contact the Aruba support because the old SLIR was fully working..so i decided to stick with the old one. I was working on a small project just for fun ;-)

I wonder if they know or already have a solution to this problem :-D ​

mjau-mjau commented 8 years ago

Likely the old SLIR was working because it didn't cache images and requests. Aruba is somehow outputting random images from the SLIR cache on request, until hard-refresh URL.