Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Cache, TimeStamp & Combo
Search
ningzbruc
January 24, 2013
Technology
140
1
Share
Cache, TimeStamp & Combo
Cache
ningzbruc
January 24, 2013
More Decks by ningzbruc
See All by ningzbruc
如何写出一个优秀的开源库
ningzbruc
0
64
去啊无线前端的一天
ningzbruc
1
170
React & Component
ningzbruc
0
43
阿里旅行去啊H5首页总结&Promise
ningzbruc
0
270
KISSY.Base - all about that Base
ningzbruc
0
130
Hammer.js
ningzbruc
1
340
淘宝旅行门票iPad版开发
ningzbruc
0
140
Travel on KISSY mini
ningzbruc
0
200
Events
ningzbruc
2
130
Other Decks in Technology
See All in Technology
60分で学ぶ最新Webフロントエンド
mizdra
PRO
33
17k
システムは「動く」だけでは足りない 実装編 - 非機能要件・分散システム・トレードオフをコードで見る
nwiizo
4
400
The Journey of Box Building
tagomoris
2
140
プロンプトエンジニアリングを超えて:自由と統制のあいだでつくる Platform × Context Engineering
yuriemori
0
220
Azure PortalなどにみるWebアクセシビリティ
tomokusaba
0
330
自分のハンドルは自分で握れ! ― 自分のケイパビリティを増やし、メンバーのケイパビリティ獲得を支援する ― / Take the wheel yourself
takaking22
1
600
新メンバーのために、シニアエンジニアが環境を作る時代
puku0x
0
990
Data Hubグループ 紹介資料
sansan33
PRO
0
2.9k
システムは「動く」だけでは 足りない - 非機能要件・分散システム・トレードオフの基礎
nwiizo
29
9.1k
CDK Insightsで見る、AIによるCDKコード静的解析(+AI解析)
k_adachi_01
2
170
AWS認定資格は本当に意味があるのか?
nrinetcom
PRO
1
240
最新の脅威動向から考える、コンテナサプライチェーンのリスクと対策
kyohmizu
0
150
Featured
See All Featured
The untapped power of vector embeddings
frankvandijk
2
1.7k
Six Lessons from altMBA
skipperchong
29
4.2k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
260
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.5k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
520
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
520
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
350
Reality Check: Gamification 10 Years Later
codingconduct
0
2.1k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
320
Design in an AI World
tapps
0
190
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
1.1k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.5k
Transcript
[Cache,TimeStamp,Combo] ] {
Cache 日常发布鸟,添加了好多屌爆了的功能! 为毛线上还没生效呢? 缓存问题,清下缓存就行了! 用户不会清缓存怎么办? 甭鸟它,刷新几次或过段时间就好了... 已经有不少用户投诉鸟... 嗯...没问题,我加个时间戳就好了
TimeStamp 我擦!YUI3 Loader没法加时间戳?! 难我不倒,给loader hack一下,让它支持时间戳 我简直就是个天才
Cache Again? 用户反映页面加载慢... 又一个牛掰的日常发布鸟,有时间戳,去除缓存不用愁,一口气上五楼! 我日... 加上时间戳后每次更新都造成所有YUI模块和组件都重新加载,哪怕是一个 小小的修改,这时候又需要考虑缓存问题了,我了个擦...
Combo? 缓存不是你想清,想清就想清,如今又要我把缓存存回来,闹哪样? 看来要使大招了!Combo解耦!! 啥玩意儿?虽然听不懂,但是貌似很厉害的样纸! 将文件分类解耦,把YUI模块和组件文件放到一个请求一起combo, 页面逻辑的代码放到另外一个请求一起combo,这样一来就可以缓存 大部分不常改的文件,又不影响页面逻辑文件的更新
Decoupling Combo 举个栗子!
groups & comboBase
None