Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 13 Years, 6 Months, 3 Weeks ago Leverage browser caching in MyBB
#1
Solved: 13 Years, 6 Months, 3 Weeks ago Question 
Info----
Quote:Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.

Can anyone help me out on this topic ??
How can I set expiry dates for images and php files ???

I analysed my forum speed on
http://gtmetrix.com
And it gave me a zero on this issue...

Can anyone tell me the steps ?? How to implement this ? Huh
Building up a new forum Wink
#2
Solved: 13 Years, 6 Months, 3 Weeks ago
I use this in my .htaccess

#
# Cache controls
#

<IfModule mod_expires.c>
	ExpiresActive On
	ExpiresByType text/javascript A2592000
	ExpiresByType text/css A2592000
	ExpiresByType application/x-javascript A2592000
	ExpiresByType application/javascript A2592000
	ExpiresByType image/jpeg A2592000
	ExpiresByType image/gif A2592000
	ExpiresByType image/png A2592000
</IfModule> 
Lost interest, sold my sites, will browse here once in a while. It's been fun.
#3
Solved: 13 Years, 6 Months, 3 Weeks ago
What does A2592000 signify ?
The time limit ?
Building up a new forum Wink
#4
Solved: 13 Years, 6 Months, 3 Weeks ago
"A" is required, can't recall what exactly but it needs to be there for this type of setting and the number is seconds to expire. 2592000 is 30 days, IIRC
Lost interest, sold my sites, will browse here once in a while. It's been fun.
#5
Solved: 13 Years, 6 Months, 3 Weeks ago
Ok one last question.....
Where should I ad the code in .htaccess ???
Building up a new forum Wink
#6
Solved: 13 Years, 6 Months, 3 Weeks ago
nice trick pavement Wink
Hello, Welcome to MyBB Indonesia to get local support
My 'Simple' Unique Plugin here Smile
#7
Solved: 13 Years, 6 Months, 3 Weeks ago
Where to add the code in .htaccess
I am using the Google Seo plugin too so its code is also there in .htaccess
Building up a new forum Wink
#8
Solved: 13 Years, 6 Months, 3 Weeks ago
Put it at the bottom.
--Pyridine
#9
Solved: 13 Years, 6 Months, 3 Weeks ago
yes, at the bottom is fine. however, this trick only works if your server has mod_expires installed into Apache
Lost interest, sold my sites, will browse here once in a while. It's been fun.
#10
Solved: 13 Years, 6 Months, 3 Weeks ago
Ok mate thanks for the help Smile
Building up a new forum Wink
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)