How to add expires headers to images

More
6 years 5 months ago - 6 years 5 months ago #70109 by nikolaikolev
Hello,
How to add "expires headers" to all images in flexicontent ?
Last edit: 6 years 5 months ago by ggppdk.

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

More
6 years 5 months 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...
The following user(s) said Thank You: nikolaikolev

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

More
6 years 5 months 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.

More
6 years 5 months ago - 6 years 5 months 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...
Last edit: 6 years 5 months ago by ggppdk.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.251 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline