How to add expires headers to images

1 year 1 month ago - 1 year 1 month ago #70109 by nikolaikolev
Hello,
How to add "expires headers" to all images in flexicontent ?

Please Log in or Create an account to join the conversation.

1 year 1 month ago #70110 by ggppdk
Hello

this is not directly related to FLEXIcontent
google it

you can use your .htaccess file


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

1 year 1 month ago #70114 by nikolaikolev
Got it.
must put this in the .htaccess file:
### activate mod_expires
ExpiresActive On
### Expire .gif's 1 month from when they're accessed
ExpiresByType image/gif "access plus 30 days"
### Expire .jpg's 1 month from when they're accessed
ExpiresByType image/jpg "access plus 30 days"
### Expire .png's 1 month from when they're accessed
ExpiresByType image/png "access plus 30 days"
### Expire .js's 7 days from when they're accessed
ExpiresByType text/js "access plus 30 days"
### Expire .css's 30 days from when they're accessed
ExpiresByType text/css "access plus 30 days"
### Expire everything else 1 day from when it's last modified
ExpiresDefault "modification plus 1 day"

Please Log in or Create an account to join the conversation.

1 year 1 month ago - 1 year 1 month ago #70126 by ggppdk
Hello

please note that adding these will make browser not to re-download them
- e.g. for flexicontent CSS/JS it maybe OK because we change URL on every upgrade
- but other JS/CSS of other plugins maybe cached and after you upgrade the plugins, they may not work properly

Also if you change an image ,
- browsers will not try to check if it has change, until their cache expires, or until cached is cleared


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.