In the previous blog post we have talked about caching basics. Let's review now how proxies actually work and how can we force cache reload.
Cache reload
The main issue with far future expires headers is that browser doesn't re-request resource but takes it from local cache. So if you have made any changes on your website they won't be visible for all 'old' users (with cached styles and scripts, HTML documents usually aren't cached so aggressively).
So what can we do with this trouble? How can we tell browsers to re-request such resources?
Main cache reload patterns
There are two main patterns to force browsers (user agents) to request the current asset once more.
- Add to the file name any GET parameter (which should indicate new state of this asset). For example
styles.css -> styles.css "physical" file name. For example
styles.css -> styles.v20091114.css
Both approaches change URL of the asset and force browser to re-request it.
Cache reload and proxy servers
As you can see the first approach is simpler than the second. But there a few possible issues with it. First of all some proxy servers doesn't cache URL with GET parameter (i.e. our styles.css So if you have a lot of visitors from a network behind one firewall we will serve this asset to each visitor separately, without its caching of a proxy server. This will slow down overall website speed and sometimes this can be critical.
But how can we apply new file name without actual changes on file system? Is there any way to perform this with only change in HTML code? Yes!
Apache rewrite rules
Apache web server has a powerful tool to perform 'hidden' redirects for local file (this is called 'internal redirects'). We can manage the first way with just one predefined rule for all files (in our case it's a set of numbers after .v
):
RewriteEngine On
RewriteRule ^(.*)\.v[0-9]+\.css$ $1.css
So all such files will be redirected to their physical equivalents but you can change a part of URL with .v
at any time — and browsers will request this asset once more.
Automated cache reload
There are several ways to automate cache reload process for all changed files. As far as Web Optimizer combines all resources into 1 file, it's required to re-check file mtime (time of change) for all files and re-combine all resources.
Issues with re-checking all combined files have been already described last month, so it's not generally good to check them all with every web page visit. We can cache all previous checks into 1 file and check only its mtime. So it's done by default. By default we can check time of change of the only file (CSS or JS one) and add as a GET parameter or as a part of file name.
So this is applied for all such files (that should be cached on a client side) and results in the following:
/cache/website.css you can see there are two timestamps in these CSS files, one goes as a GET parameter, the other — as a part of URL (and with Apachemod_rewrite
rule is transformed to/cache/website.css
).Overall schema
So what is overall caching algorithm for the website?
- Check if we have combined file. If no — create it.
- Check mtime of the combined file. If it's required add mtime to URL (using one of the described ways).
- Browser receives HTML code with the URL of combined file.
- Browser checks if it has this URL cached. If yes, all finished here.
- If not browser requests cached file (which is already prepared on the server or is cached on the proxy).
This comment has been removed by a blog administrator.
ReplyDeleteThere are different reasons for which we use the internet. Some use it to check their mail box or send a message. Some use it to find friends and chat with their loved ones. read this article
ReplyDeleteI am upbeat to locate your recognized method for composing the post. Presently you make it simple for me to comprehend and execute the idea. Much obliged to you for the post. vpnveteran
ReplyDeleteIn any event it ended a really fantastic trip for us on an absolute high. A case of being in the right place at the right time!" visita il sito
ReplyDeleteI am continually amazed by the amount of information available on this subject. What you presented was well researched and well worded in order to get your stand on this across to all your readers. find out more
ReplyDeleteI'm constantly searching on the internet for posts that will help me. Too much is clearly to learn about this. I believe you created good quality items in Functions also. Keep working, congrats! besuche die Website
ReplyDeleteThis is only the data I am discovering all over the place. A debt of gratitude is in order for your website, I simply subscribe your online journal. This is a decent blog.. VPN
ReplyDeleteThis is a truly good site post. Not too many people would actually. the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best. with so much class. If wanted to know more about green smoke reviews. than by all means come in and check our stuff. allertaprivacy
ReplyDeleteJust pure classic stuff from you here. I have never seen such a brilliantly written article in a long time. I am thankful to you that you produced this! weneedprivacy
ReplyDeleteI think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. https://www.lemigliorivpn.com
ReplyDeleteIntriguing post. I Have Been pondering about this issue, so much obliged for posting. Really cool post.It "s truly extremely pleasant and Useful post.Thanks lesmeilleursvpn.com
ReplyDeleteDatacenter virtualization is most certainly necessary for most businesses to keep up with the explosion of data resources needed to keep pace with competitors.
ReplyDeleteminecraft server hosting
I love significantly your own post! I look at all post is great. I discovered your personal content using bing search. Discover my webpage is a great one as you.I work to create several content this post. Once more you can thank you and keep it create! Enjoy! Klik hier
ReplyDeleteI think this is definitely an amazing project here. So much good will be coming from this project. The ideas and the work behind this will pay off so much. Meer hierover leest je hier
ReplyDeleteAs a matter of fact, bloggers and other expert reviewers compose quality reviews in various ways. They go for slight varieties to get explicit outcomes.website reviews
ReplyDeleteMany small business owners struggle with deciding on how to make the right choice for designing their website. They search the web for help with their website and find that the choice is harder than they thought.Webdesign
ReplyDeleteYour post has those certainties which are not open from anyplace else. It's my unassuming solicitation to u please continue composing such astounding articles cheap vps
ReplyDeleteBy using this type of Proxy, you will bypass a direct connection with the intended website and view the site under the Web Based Proxies IP address. torrentz2
ReplyDeleteThis is actually the kind of information I have been trying to find. Thank you for writing this information. get free instagram likes famoid
ReplyDeleteIntermediary sites are accessible for nothing and numerous individuals use intermediaries to bring in cash. Certain intermediary sites permit you to ride the web for nothing, while some need a login. https://themersclub.com
ReplyDeleteOffline advertising and promotion - Business cards, postcards, traditional direct mail, newspaper ads, flyers, giveaways and brochures that feature a domain name are all excellent ways to promote a website. Trust Pilot Website Scraper Software
ReplyDeleteFor the accomplishment of a website, it is essential to get guests and get business. To advertise a website viably, marketing devices are essential. To get great marketing results, these instruments assume a significant job. how to get email lists for marketing
ReplyDeleteOn the off chance that your social media strategy has not been refreshed in the course of recent years, the approach is probably going to be out of consistence with the direction gave by the National Labor Relations Board as of late. SMM Panel
ReplyDeleteSo if your site takes too long to even consider stacking, your rankings may endure. view cached web pages
ReplyDeleteKeep the connections shaded blue however much as could reasonably be expected in light of the fact that regular clients are now utilized with the tone. SEO Antwerpen
ReplyDeleteThat is the reason you need to make it as simple as feasible for website guests to join your rundown. In the event that you don't have an eNewsletter information exchange structure on your website, contact your web engineer to add one. website development in pakistan
ReplyDeleteConsider adding web-based media sharing highlights to your website, particularly your blog articles, so individuals can undoubtedly impart them to their devotees to only a single tick. This can make significantly more brand openness and website traffic. Best Elementor Themes
ReplyDeleteStatic Features - Despite some degree of customization choices, this is a basic example with highlights incapable to be custom-made to suit singular preferences and necessities. For any individual or business who flourishes with it's anything but, a layout won't be reasonable by any means. website developer australia
ReplyDelete
ReplyDeleteI like what you guys tend to be up too. This kind of clever work and reporting!
Keep up the very good works guys I’ve added you guys to our blogroll.
Try to check my blog: 부산오피
(jk)
This comment has been removed by the author.
ReplyDeleteSpeed of surfing ought not be compromised when you use proxy for riding the web. This is a significant element you should search for in any proxy you pick. best vpn reddit
ReplyDeleteMaximum anonymity and much more features are available for paid members, but you can still surf the internet from the proxy without paying anything. resources
ReplyDeleteBe careful with organizations that can provide you a cost estimate nearly without hearing any subtleties of your undertaking. Try not to be hesitant to pose bunches of inquiries! Clientica WordPress Agency
ReplyDeletepossessions, acquiring clearness in life through having less and searching for additional approaches to minimalize everything. What does this have to do with websites?sell domains names
ReplyDeleteModeration is colossal at this moment. Many individuals are scaling down their assets, acquiring clearness in life through having less and searching for additional approaches to minimalize everything. https://hostinglelo.in/
ReplyDeleteAssuming every one of the locales resemble the other the same there's not really any shot at the guest recalling a particular website. jasa backlink
ReplyDeleteThey can stay away from the whole course of searching for a designer and working with the expert on the website configuration by doing it all alone.https://sites.google.com/view/seoservicesindelhiindia
ReplyDeleteWow great post! Thankyou for sharing the information, its very helpful. Jasa kitchen set surabaya
ReplyDeleteReally helpfull and greats Information, Please check this out! jual ban traktor
ReplyDeleteReally helpfull and greats Information, Please check this out! apk vcs gratis
ReplyDeleteSlot Deposit Pulsa 5000 Tanpa Potongan
ReplyDeleteSlot Bonus New Member 100 di Awal
Maintenance of website performance and uptime 24*7 is certainly impossible for an individual, this is where the monitoring tools come into play. Apple Toolbox
ReplyDeleteReally helpfull and greats Information, Please check this out! server pulsa
ReplyDeleteCool article ngeriqq
ReplyDeleteWith Great post come great responbility
ReplyDeleteSitus judi online terbaik
Your content bringing new knowledge in the internet
pkv poker qq
Supperrrr.... Nice Content
DewaQQ
only a few good blogs but this blog is very complete and quality Serbu4d
ReplyDeleteContinuously search for organizations that offer every minute of every day backing and unconditional promises. best cheap hosting
ReplyDeletegood post. never knew this, thanks for letting me know! BandarQ
ReplyDeletethis blog is interesting, im happy to stop by this blog! DewaQQ
ReplyDeleteThankfully this information is very helpfull and great Information, Please check this out! Bandar judi slot online
ReplyDeleteWow great post! Thankyou for sharing the information, its very helpful. Domino228
ReplyDeletethere are still very few blogs that are as good as this and the very best asikdewa
ReplyDeletethank you very much because this blog is very useful and the content is very cool cepekqq
ReplyDeleteWow, I will always support you
ReplyDeleteslot online
Wow the stronger man in the blog
ReplyDeletehack akun domino tanpa verifikasi
Really helpfull thanks guys! this are great Information, Please check this out! data keluaran totomacau
ReplyDeleteWell done information.thanks for the excellent article cloud hosting
ReplyDeletethank you very much because this blog is very useful and the content is very cool apk
ReplyDeleteUnique website, great to visit! cara hack facebook via android terminal emulator
ReplyDeletethank you very much for this blog because it is very helpful and useful doaslot
ReplyDeletethankyou the information is very helpful. Slot Deposit Pulsa Tanpa Potongan
ReplyDeletethankyou the information is very helpful. Slot Deposit Pulsa 10 Ribu Tanpa Potongan
ReplyDeletethankyou the information is very helpful. cara hack wa jarak jauh
ReplyDeletenice blog! check this too sumberqq
ReplyDeletethankyou the information is very helpful. shibaqq
ReplyDeletethe information give a clear brief situs qq online terpercaya
ReplyDeletethankyou the information is very helpful. pkv games
ReplyDeleteReally from my heart thanks guys! this are great Information, Please check this out! Star777
ReplyDeleteAwesome, this link will shock you with their information, I love it. Let's check it out nft games
ReplyDeleteGreat blog, interesting to explore! rtp slot gacor
ReplyDeleteAwesome, there's a lot of information in this site, let's check if there is any information there duck games
ReplyDelete(RTP Slot) merupakan tolak ukur tingkat kemungkinan menang game slot online. Informasi slot gacor hari ini ditampilkan dengan hitungan persen sebagai ukuran keberhasilan. http://www.kohjumonline.com
ReplyDeletethank you very much because this blog is very useful and the content is very cool slot88
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteLet's! visit a very useful and interesting website bandarqq
ReplyDeletenice blog so impressive https://winningqq.org/
ReplyDeletesilahkan tekan informasi ini. judi bola
ReplyDeletethank you very much because this blog is very useful and the content is very cool Indo Dewa QQ
ReplyDeleteThis is the first time I've found a blog as good and comprehensive as this one PKV Games
ReplyDeleteCheck this site, this site is very useful. slot online
ReplyDeletethank you very much because this blog is very useful and the content is very cool poker online
ReplyDeletegood post. never knew this, thanks for letting me know! Kampus teknologi dan bisnis energi
ReplyDeleteYour site in my social networks! satta result
ReplyDeleteagen judi bola
find your path on my page
ReplyDeletecara melihat password fb orang lain di google chrome
thankyou the information is very helpful. slot terpercaya
ReplyDeleteA lot of interesting information can be obtained from this site!! Kampus Swasta Unggulan di Jakarta
ReplyDeletestill wonder my best part till i meet
ReplyDeletejudi bola
thankyou the information is very helpful. jasa followers
ReplyDeletegood so informatif! check this too agen pkv games
ReplyDeleteNice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offering Jasa Pindahan Jakarta
ReplyDeletethere are many blogs already exist but among all these blogs is the best sgp hari ini
ReplyDeletegood so informatif! check this too hk hari ini
ReplyDeletethank you very much because this blog is very useful and the content is very cool Empiretoto
ReplyDeletethanks for sharing,this web a lot of helpful information. let's explore this site so good! agen pulsa
ReplyDeletelet's check this site, so many information in there urutan pakai skincare yang benar
ReplyDeletewow excellent blog! the content is very interesting and useful. i really enjoyed reading it. thanks! gigi gingsul
ReplyDeleteexplore this very interesting and useful site well! tempat penitipan kucing
ReplyDeleteyou and i best moment is yet to come, find here
ReplyDeletepragmatic play
You have one thousand skill in the world
ReplyDeletegantengqq
Thanks you verry much
ReplyDeletepoker
You have one thousand skill in the world
ReplyDeleteSlot Gacor Terbaik
Go explore here now,useful web! slot
ReplyDeletemust check this site, so cool and amazing, so many information in this site cara meningkatkan fungsi otak
ReplyDeletethis site so awesome and so cool skema ponzi
ReplyDeleteWow great post! Thankyou for sharing the information, its very helpful. pragmatic play indonesia
ReplyDeletelet's check this link, you can gain so many information on there. skema piramida
ReplyDeletewant any information? let's check this link. mlm syariah
ReplyDeletelet's check this amazing site, you will see so many interesting information in this site. masalah kulit badan
ReplyDeleteso cool and amazing, information in this site so helpful what is cryptocurency airdrop
ReplyDeletethis site so cool, so amazing, and so helpful, check it now! gaming coins
ReplyDeletethis site so cool, thank you for the amazing information ciri ciri skincare berbahaya
ReplyDeletethis site so amazing, must check this site, thank you!! kandungan skincare yang aman
ReplyDeletethis site so cool, all information in this site so amazing cara cek skincare bpom
ReplyDeleteawesome, so useful information in this site cara memilih suplemen herbal
ReplyDeleteThis blog is very complete and very useful to read slot gacor online
ReplyDeleteawesome, so helpful information in this site, thank you for the information! bisnis kecantikan di indonesia
ReplyDeletethis site very useful, must check this amazing site! perbedaan suplemen dan vitamin
ReplyDeleteamazing site, every information in this site so useful! skema ponzi
ReplyDeletecheck this site, so useful, amazing, and so many information in this site beda mlm dan money game
ReplyDeleteso amazing, must check this site, every information in this site so useful and cool. gangguan sistem pencernaan
ReplyDeleteso amazing, every information in this site so cool. jenis rambut
ReplyDeleteThere are many cool article!! slot online gacor
ReplyDeleteamazing site!! so useful informstion in this site bentuk suplemen
ReplyDeleteeveryone must check this site, so useful and so cool perbedaan oem dan odm
ReplyDeletecheck this site, so cool, amazing and so useful zat paraben
ReplyDeletethank you for the information in this site, so useful manfaat hyaluronic acid untuk kulit wajah
ReplyDeleteReally this information very help me thanks guys! this are great Information, Please check this out! omnichannel marketplace Terbaik
ReplyDeleteHow can this site can give us gain any information, Amazing companies that accept cryptocurrency
ReplyDeleteLet's check this site, you will be surprised about the information nft marketplace in india
ReplyDeleteThanks You
ReplyDeletehttps://deriota.com
Awesome, this link can bring me any information perbedaan tambal gigi sementara dan permanen
ReplyDeleteLet's check this cool, amazing, and awesome site so many useful information in this site!!! perawatan gigi anak
ReplyDeletereally good article, thank you for information
ReplyDeletetiktok downloader
Great post! more information about Software ERP Indonesia can be checked here
ReplyDeleteSoftware ERP Indonesia
the article is very interesting and the website is also very good!! australian blog
ReplyDeletethanks for sharing this article, really useful
ReplyDeletetiktok downloader HD
nice blog. very informative and very useful. keep sharing what matters
ReplyDeletetiktok downloader HD
This website is filled with a lots of great article, just like this one.
ReplyDeleteIt was well-written and informative. Thank you!
indonesia specialty coffee
insight in your article is very good
ReplyDeleteKursus pajak online
thanks
ReplyDeletePireki Asia adalah Produsen partisi geser lipat,
Great article with excellent idea!Thank you for such a valuable article. I really appreciate for this great information.. rv refrigeration
ReplyDeleteI really like your blog. Great article. It's most evident, people should learn before they are able to grow your business
ReplyDeleteI really like your blog. Great article. It's most evident, people should learn before they are able to Buy Ozempic in Bulk China
ReplyDeleteA very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up michael kors bags brown
ReplyDeleteThis was a shocking post. It has some look at here fundamental data on this subject. health and safety awareness course
ReplyDeleteso many cool information in this site! thank you ludotogel
ReplyDeleteImpressive user interface! Navigating through the site is a breeze, and the design is visually appealing. Great job, team sub to unlock
ReplyDeleteYour website is a pleasure to explore – it's polished, engaging, and professionally crafted. sub to unlock
ReplyDeletegmtoto88 menghadirkan sistem transaksi yang mudah dan cepat, memudahkan para pemain dalam mengelola akun mereka.
ReplyDeleteImmerse yourself in Balinese Traditional Reed Instrument Crafting with our Instrument Crafting Bali Tour
ReplyDeletePackage, creating traditional musical instruments using woven reeds.
I found the article to be very informative and well-researched.
ReplyDeletetiktok downloadeder
Naga777 menyelenggarakan turnamen slot "Celestial Celebration" dengan tema alam semesta dan bonus tambahan.
ReplyDeleteIkuti kursus pelatihan training iso 9001 2015 untuk memahami persyaratan standar mutu yang paling baru. Tingkatkan efisiensi operasional dan raih keunggulan kompetitif.
ReplyDeleteRatu388 membanggakan diri sebagai penyedia permainan judi online terbaik dengan bonus besar dan layanan cepat.
ReplyDeleteSambut keberuntungan dengan bergabung di X500 Slot - tempat yang memberikan Anda akses ke permainan slot paling mengasyikkan.
ReplyDeleteKualitas Profesional, Layanan Terbaik: maklon skincare bogor sebagai Pilihan Utama.
ReplyDeleteSbobet88: Tempatnya Taruhan Online yang Aman, Adil, dan Menghibur.
ReplyDeleteRpjitu togel online is the ultimate destination for gaming enthusiasts. Join our platform now and unlock a world of excitement, challenges, and rewards!
ReplyDeleteUnlock a world of gaming excellence with Situs Olxtoto - where every bet is a step towards victory. situs olxtoto
ReplyDeleteKimtoto Learn how to structure your website for maximum Kimtoto visibility and impact.
ReplyDeleteYour website design is so sleek and user-friendly, navigating through it is a breeze! Kimtoto
ReplyDeleteYour website's message of positivity and optimism has been a guiding light during challenging times, reminding me to stay focused on the brighter side of life. Markaszeus
ReplyDeleteYour website has encouraged me to step out of my comfort zone and pursue my passions with courage and conviction. Markaszeus
ReplyDeleteIt's wonderful to hear that you discovered valuable information in the article. I'm grateful for your positive feedback and for taking the time to read the article. Solar Module Distributor in india
ReplyDeleteFound my dream job thanks to the expertise of these search firms!
ReplyDeletetop executive search firms
distributor alat pemadam kebakaran Jamin keselamatan rumah Anda dengan pemadam kebakaran yang handal dari distributor alat pemadam kebakaran terpercaya.
ReplyDeleteTopup game murah di website kami dan rasakan pengalaman bermain yang lebih seru website topup game murah
ReplyDeleteHighly recommend this recruitment agency in Singapore for top talent!
ReplyDeleterecruitment agency singapore
Nikmati tampilan user-friendly di situs ludotogel
ReplyDeleteHokiwin menawarkan berbagai pilihan slot dengan tema menarik
ReplyDeleteMpo303, situs terpercaya dengan reputasi terbaik di dunia slot online.
ReplyDeleteDapatkan cashback dari setiap taruhan Anda di Mpo338.
ReplyDeleteDive into an array of games offering the most enticing promotions and bonuses, with the smoothest mobile login through the official link! Dutaslot
ReplyDeleteExplore the most breathtaking game site with high-tech visuals and convenient login, with the option to download an unblockable mobile APK! Dewa99
ReplyDeleteAyo bergabung dengan kursus desain grafis di bogor dan kembangkan kreativitasmu bersama kami!
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteJoin sultan lotre for expert lottery advice, tips, and winning strategies. Increase your chances of winning! sultan lotre
ReplyDeleteThe content here is always valuable toto macau.
ReplyDeleteDapatkan promosi dan hadiah menarik setiap hari hanya di idslot88 yang selalu diperbarui. idslot88
ReplyDeleteDONE
ReplyDeleteThis site offers a great mix of informative and entertaining content mega888 apk.
ReplyDeleteBrilliantly written! The author's passion for the topic shines through in every paragraph.
ReplyDeletetiktok 1080p downloader
This is a digital wonderland—so much thought and care went into this! mega888 apk
ReplyDeleteFantastic job! The user interface is smooth and intuitive. happytoto4d
ReplyDeleteThe user experience here is seamless; navigating through the pages is a breeze. sultan lotre
ReplyDeleteI love the creativity in your articles sultanlotre
ReplyDeleteThe website stands out with its clean design and intuitive navigation,
ReplyDeletemaking it easy for users to find what they need.
Hokqbet88
Fun Lotre: Lotre online dengan gameplay seru dan hadiah harian. fun lotre
ReplyDelete