Tarun Posted May 10, 2015 Posted May 10, 2015 This is a custom .htaccess to use on the IPS Community Suite Forums. It helps to improve your forums Google Page Speed and YSlow scores. The top segment is the same .htaccess that is generated by the IPS Forum software. The bottom segment is based upon research of several websites and the references listed below. Please be careful when using this file because the contents may be incompatible with your server setup. Preventative measures have been taken to ensure that it should be safe to use in any Apache based environment. Google recommends a minimum of one week: https://developers.google.com/speed/docs/insights/LeverageBrowserCachingGTmetrix recommends a minimum of one month: http://gtmetrix.com/leverage-browser-caching.html This file is provided as-is and works with Apache based systems only. Server configurations may vary and there may be unexpected results, preventative measures have been included to try and keep any problems from occurring. This resource is not supported. Help will be offered to the best of my ability and the community's help and feedback are welcomed. Contributions to improve the overall performance gained by this file are encouraged. kysil and Thomas P 2
wmarcy Posted May 11, 2015 Posted May 11, 2015 I am only finding a readme file in the zip, am I missing it somehow?
kysil Posted May 11, 2015 Posted May 11, 2015 I am only finding a readme file in the zip, am I missing it somehow?You need to show hidden files on your computer/server. Tarun 1
Tarun Posted May 11, 2015 Author Posted May 11, 2015 I am only finding a readme file in the zip, am I missing it somehow?If anyone else runs into this sort of issue please let me know. I'll be glad to include a copy as htaccess.txt to prevent this from being an issue in the future.
craigf136 Posted May 11, 2015 Posted May 11, 2015 If anyone else runs into this sort of issue please let me know. I'll be glad to include a copy as htaccess.txt to prevent this from being an issue in the future. Although not an issue for me, it may be beneficial to include it as standard and prevent unnecessary support topics/posts regarding it Tarun 1
Tarun Posted May 12, 2015 Author Posted May 12, 2015 (edited) Draffi, yes. However you will need to remove the top segment of IPS 4 .htaccess code. Only use the segment from the ## Begin - Expires caching to the ## End - Expires caching. I use this same code on my Lunarsoft frontpage. Edited May 12, 2015 by Tarun Draffi 1
Tarun Posted May 13, 2015 Author Posted May 13, 2015 1.0.1 is now availableNo changes have been made to the file contents of .htaccess and the htaccess.txt is a direct copy of .htaccess. Changes:Included htaccess.txtIncluded changelog.txtIncluded Readme.txt kysil 1
Owdy Posted May 17, 2015 Posted May 17, 2015 (edited) Heres results before and after this "mod". I dont see much change? after.pdf before.pdf Edited May 17, 2015 by Owdy
Tarun Posted May 17, 2015 Author Posted May 17, 2015 I don't see much change either. Things did improve. It would be nice to expand and see where these issues are. Also, 89 requests seems rather high. I'll poke around with the url and see what I can find that can be done to help improve the speeds and such of your site and post again later, possibly editing this post. With what I see just taking a peek, turning this image linked below into a jpg will help reduce load times and file size. From 422KB to 37KB as a jpg when I tried with: http://image.online-convert.com/convert-to-jpg http://hoitajat.net/images/aihekuvat/etusivu.png Many things need image dimensions set, too which will improve your scores. gzip doesn't look to be enabled? Twitter looks to need an update to load asynchronously. Optimizing your images (pngs) and compressing them will also help reduce page size and improve load times. Page load time: 8.08s Total page size: 2.65MB Total number of requests: 89 A lot of the page needs optimizations and work, but the .htaccess did improve what it could a bit. I hope this helps you get your page optimized. Owdy and kysil 2
kysil Posted May 24, 2015 Posted May 24, 2015 Hi,how to apply these rules to Amazon S3 storage files?Thank you!
RevengeFNF Posted May 24, 2015 Posted May 24, 2015 Heres results before and after this "mod". I dont see much change? after.pdf before.pdf Edit your theme, go to Custom tab and change "Javascript include location" to "Just before </body> tag". Tarun 1
tekguru Posted June 1, 2015 Posted June 1, 2015 I did put this in place but found a lot of Mods like the 'cookie mod' stopped working properly in that after a user had clicked to acknowledge cookies were uses on the site (which hides the mod), then when re-running the browser instead of the mod block being hidden it was visible again.
NoGi Posted July 2, 2015 Posted July 2, 2015 Will try this later tonight, my current scores are pretty bad from GTmetrix with Page Speed E and yslow D.
OrahChris Posted July 3, 2015 Posted July 3, 2015 Holy Shoot balls batman. My forum is about 5 years old and I've never really taken the time to run a speed test. I did (on GTmatrix) and I got a D and C specifically. ok fine whatever it's never effected our traffic all that much, I don't think. Anyway I add in the .htaccess modiciation (with some slight changes) below the rules I already had in place. I reran the test and received and A (93%) and B 83%) What exactly is going on here and why the performance jump?
Tarun Posted October 29, 2015 Author Posted October 29, 2015 (edited) No update is necessary for IPS Forums 4.1. This .htaccess continues to work with no changes or updates needed. On 7/2/2015, 8:25:48, chrisjmc2006 said: What exactly is going on here and why the performance jump? Proper caching expiry timers are being established, which is what most of these tests are looking for. On 7/2/2015, 4:17:54, NoGi said: Will try this later tonight, my current scores are pretty bad from GTmetrix with Page Speed E and yslow D. Any changes to report? On 6/1/2015, 6:57:28, tekguru said: I did put this in place but found a lot of Mods like the 'cookie mod' stopped working properly in that after a user had clicked to acknowledge cookies were uses on the site (which hides the mod), then when re-running the browser instead of the mod block being hidden it was visible again. Do these mods use Javascript or something to acknowledge the cookie mod? Because that's the only thing I can think of that might interfere with the mod. Edited October 29, 2015 by Tarun
CheersnGears Posted October 30, 2015 Posted October 30, 2015 So I'm having a slight issue with this on my 3.4.8 board. View New Content doesn't update with the actual new content unless the user does an F5. Thoughts?
Tarun Posted June 15, 2016 Author Posted June 15, 2016 1.0.2 is now available Changes: Added the "map" part that IPS generates into the .htaccess file - 404 section. I also added a screenshot so it doesn't show a blank .png thumbnail here on the Marketplace.
marklcfc Posted October 31, 2016 Posted October 31, 2016 (edited) If my forums are in /forums does this information go in the htaccess in public_html directory or /forums. For some time I have had those expires headers in a htaccess file in my public_html directory, but in readme it says to put it in forum root. I have also been using access plus 1 week/month instead of now plus 1 week/month, is there any real difference? Edited October 31, 2016 by marklcfc
Recommended Posts