Jump to content

Missing expire in htaccess for jpg


mojweb

Recommended Posts

Using presta 1.6.0.9 and smarty cache.

Presta is generating htaccess file with expire dates for files like:

ExpiresActive On
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
...

But missing jpg extension.

That is reason for slow performance in Chrome browser.

If i manualy add that line for jpg, is overwriten at next htaccess update.

 

I think that is a bug in PS.

 

So solution for that?

Which file is responsible for write this expire dates in htaccess?

Is it posible to protect this line for being overwriten?

Link to comment
Share on other sites

I think that

ExpiresByType image/jpeg "access plus 1 year"

Also handles .jpg

 

 

But I'm experiencing the same problems - some (only some) .jpg are not handled by the same configuration. Some are, some are not.

 

File permissions are same.

 

Think it could be some sort of server issue but my hosting can't figure it out.

Link to comment
Share on other sites

I think that

ExpiresByType image/jpeg "access plus 1 year"

Also handles .jpg

 

 

But I'm experiencing the same problems - some (only some) .jpg are not handled by the same configuration. Some are, some are not.

 

File permissions are same.

 

Think it could be some sort of server issue but my hosting can't figure it out.

 

It should, but problem is in Chrome browser. Adding jpg solves it.

Link to comment
Share on other sites

There was a bug a while back in the home slider that it didn't use a file extension, is would be like 34hjkg423hjpg and those would not compress because there was no file extension, they were in a img tag so they were still interpreted as an image. 

Link to comment
Share on other sites

×
×
  • Create New...