Hi guys,
I was wondering something and I will really appreciate it if someone knows how to achieve the thing that I will describe below.
So, here we go. Before I tell you anything, I will say that I am focusing to use ngx_pagespeed only for caching images. Actually, compressing images, caching them and serving them to the users that request the original images, of course .... keeping the urls unchanged.
Currently, the ngx_pagespeed is working the following way:
1. User 1 requests the images (request 1) ---> nginx gets the request ---> the original images are served to User 1 --- > ngx_pagespeed compresses the images and stores them for later requests
2. User 1 requests the images again (request 2) ---> nginx gets the request ---> compressed images are served to User 1
3. User 2 requests the images (request 3) ---> nginx gets the request ---> the original images are served to User 2 --- > ngx_pagespeed compresses the images and stores them for later requests
All requests are made in a 1-2 minutes interval.
And here is the conflict. Why the cached images are not served to User 2, once they are generated from the request of User 1 and stored locally as compressed images?
I am not sure if I could describe the issue very well, but I hope you will get the idea. Does somebody know how this can be fixed? And do you need my config files?
Thanks a lot for the help!