Jump to content

NGinx | PHP 5.5 FastCGI no FO product images with cache turned on


Recommended Posts

If I turn off caching for jpeg/jpg with url rewrite everything shows normally and functions fine

If I turn on caching for jpeg.jpg with url rewrite everything shows except my product images, AND image urls are not changing so it doesn't appear to be a path issue.

 

I've tried regenerating images, I've deleted htaccess with url rewriting off, went to front page to generate a new one and turned url rewrite back on and still nothing.

 

I'm using a custom theme, but I have verified the issue with the default theme (the issue was discovered before the custom theme was activated).

 

I'm using the latest version of prestashop on a Dreamhost VPS with Nginx | PHP 5.5 FastCGI (also had the problem with regular CGI), I've been able to get pretty much everything else functional following instructions and ideas from post here on the forum

 

For rewriting I'm using the code from the link below:

https://www.prestashop.com/forums/topic/351024-solved-nginx-problem-admin-page-not-accessible/

 

For caching I'm using:

 

location ~* \.(eot|gif|jpg|jpe?g|ico|otf|pdf|png|svg|swf|ttf|woff)$ {

    expires 1M;

    add_header Cache-Control public;

    allow all;

}

 

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
×
×
  • Create New...