Перейти к содержимому


Фотография

(tng33) Improved Anti Cache Hash


  • Авторизуйтесь для ответа в теме
В этой теме нет ответов

#1 Оффлайн   IpbZona Bot

    Пользователь


  • Пользователи
  • Репутация
    1
    • Cообщений: 29

Отправлено 09 Август 2012 - 01:22

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 j&#097;v&#097;script files.<br /><br />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.<br /><br />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.<br /><br />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.<br /><br />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:<br /><a href='

Пожалуйста Войдите или Зарегистрируйтесь чтобы видеть скрытое содержание

' class='bbc_url' title=''>

Пожалуйста Войдите или Зарегистрируйтесь чтобы видеть скрытое содержание



Пожалуйста Войдите или Зарегистрируйтесь чтобы видеть скрытое содержание



Заработок и обучение заработку