Submitter
SUPPORT TOPIC File Information
- Submitted: Aug 08 2012 04:22 PM
- Last Updated: Dec 14 2012 04:28 PM
- File Size: 1.43KB
- Views: 1185
- Downloads: 86
- Supported IPS Software Version: 3.3.x
Download (tng33) Improved Anti Cache Hash 1.0.0
Exactly as the title says, this hook aims to improve upon the "Anti-Cache Hash" which IP.Board now has to try and stop web browsers caching old CSS and javascript files.
IP.Board's default implementation will only ever realistically change the hash when upgrading to a new version of IP.Board. This is not ideal, especially when you make changes to your skins as the changes will not be reflected without everyone who visits your site, first clearing their browser cache.
What this very lightweight and simple hook does, is replace all instances of the hash with another one (based on the original hash), but it will change based on the timestamp of when the skin the user is viewing was last updated.
You may find you need to re-cache the skin after editing it, to force the timestamp to update if you do not see your CSS changes straight away.
Basically, if you are having issues with CSS changes not making it to your users without them clearing their browser cache, give this hook a try and get behind our feedback thread for getting something like this added to a future IP.Board release:
http://community.inv...it-or-re-cache/
IPB 3.4.x
I'm pleased to say this is not needed for IPB 3.4.x, as IPS have implemented this fix themselves
IP.Board's default implementation will only ever realistically change the hash when upgrading to a new version of IP.Board. This is not ideal, especially when you make changes to your skins as the changes will not be reflected without everyone who visits your site, first clearing their browser cache.
What this very lightweight and simple hook does, is replace all instances of the hash with another one (based on the original hash), but it will change based on the timestamp of when the skin the user is viewing was last updated.
You may find you need to re-cache the skin after editing it, to force the timestamp to update if you do not see your CSS changes straight away.
Basically, if you are having issues with CSS changes not making it to your users without them clearing their browser cache, give this hook a try and get behind our feedback thread for getting something like this added to a future IP.Board release:
http://community.inv...it-or-re-cache/
IPB 3.4.x
I'm pleased to say this is not needed for IPB 3.4.x, as IPS have implemented this fix themselves
What's New in Version 1.0.0 (See full changelog)
- Initial IPB 3.3 Release
Other files you may be interested in ..
- 3,050 Total Files
- 52 Total Categories
- 513 Total Authors
- 584,513 Total Downloads
- IP.Downloads 2.5.2-2.5.3 Russian Language Pack Latest File
- Ivan Gorshkov Latest Submitter
36 user(s) are online (in the past 30 minutes)
12 members, 22 guests, 0 anonymous users
Bing (1), +AlphaMale.pl, +Ingo, +fadedturbulence, +r3nos, +mistera, +Caleb Mann, Google (1), hellomyfriends, +joelle, +Sunisup, +Unexplained Activity, +ZaIeD, +TrekkiemonsterUK










