Jump to content

Welcome to DevFuse Forums

Sign In  Log in with Facebook

Create Account
Welcome to DevFuse Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of DevFuse Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
Guest Message by DevFuse

(View All Products)Featured Products

  • Donations

    Help fund your forum with donations, setup goals and track member donations. Offer rewards for members donating.
  • Timeslips

    Have your members submit their race times and share with others.
  • Videos

    Allows your members to submit their own videos for community viewing. Support is included for all the major video sites.
  • Forms

    Build your own forms for your members without coding experience. Support included for pm, email and topics.
  • Collections

    Build a community database of items for your members. Full features custom fields included.


[IPS] (tng33) Improved Anti Cache Hash

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 News Bot

News Bot

    Dedicated Member

  • Members
  • PipPipPipPipPip
  • 1,909 posts
  • IP.Board Version:N/A

Posted 08 August 2012 - 03:22 PM

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:

View Resource