1 tilqicom Dec 06, 2012 14:10
3 sam2kb Dec 07, 2012 00:30
The only thing that was different for me was; you know when you try to add an attachment, it brings up the file manager, and in file manager index i have hundreds of images, they used to load almost immeadietely, but after turning k_a on, it started to load them 2 by 2, or 3 by 3, and so i have to wait a while before the whole file manager index loads.
You just need to set up your webserver the right way.
<IfModule mod_expires.c>
ExpiresActive On
# images
ExpiresByType image/png "access plus 6 month"
ExpiresByType image/gif "access plus 6 month"
ExpiresByType image/jpeg "access plus 6 month"
ExpiresByType image/x-icon "access 1 year"
# css and javascript
ExpiresByType text/css "access plus 2 months"
ExpiresByType application/javascript "access plus 2 months"
ExpiresByType text/javascript "access plus 2 months"
</IfModule>
You should also add the Cache-Control "public" header. Google for more info.
4 sam2kb Dec 07, 2012 00:34
NGINX
location ^~ /media/ {
access_log off;
error_log /dev/null;
expires 60d;
add_header Cache-Control public;
}
5 tilqicom Dec 07, 2012 01:31
Well i tried 2 secs, and it was loading like 2 images per sec., so still a long wait before all loads.I am now trying sam2kb's suggestion with keep alive turned off again
@fplanque wrote:
I personally use KeepAlive at 4 seconds.
The number of simultaneous connections when loading your thumbnails is built into the web browser, depends on the brand and version. Varies between 2 and 8.
Ok i have added to my .htaccess and turned keep alive off.Lets see how it goes
@sam2kb wrote:
<IfModule mod_expires.c> ExpiresActive On # images ExpiresByType image/png "access plus 6 month" ExpiresByType image/gif "access plus 6 month" ExpiresByType image/jpeg "access plus 6 month" ExpiresByType image/x-icon "access 1 year" # css and javascript ExpiresByType text/css "access plus 2 months" ExpiresByType application/javascript "access plus 2 months" ExpiresByType text/javascript "access plus 2 months" </IfModule>
You should also add the Cache-Control "public" header. Google for more info.
I personally use KeepAlive at 4 seconds.
The number of simultaneous connections when loading your thumbnails is built into the web browser, depends on the brand and version. Varies between 2 and 8.