Usted está aquí

Consejos para mejorar el rendimiento de nuestro sitio web a través de la caché del navegador

Escrito por Ing. Maikel Maldonado del Toro, 23 de Marzo, del 2017
 rendimiento caché navegador Apache

Un problema cotidiano a presentarse en portales y sitios web con gran volumen de información, es el rendimiento, al cargar para mostrar los contenidos al usuario final. Cada vez que un navegador carga una página tiene que descargar todos los archivos de Internet para su correcta visualización: esto incluye el HTML, CSS, JavaScript, imágenes, etc.

La consecuencia de esta descarga de archivos provoca que:

- Los archivos grandes tardan más en cargarse (extremadamente lento con conexiones lentas).

- Cada archivo realiza una petición separada al servidor. Mientras más peticiones se hagan al servidor más trabajo tiene que hacer este, lo que reduce aún más la velocidad de carga de la página.

Analizando los elementos anteriores podemos determinar que la caché del navegador ofrece una solución mediante el almacenamiento local de algunos de estos archivos en el navegador del usuario.

Se debe tener en cuenta que la primera visita al sitio tendrá el mismo tiempo de carga, sin embargo, al usuario regresar a visitarlo, actualiza la página o incluso se mueve a otra página en el mismo, con lo que ya este usuario tendría algunos de los archivos que necesita a nivel local en su navegador.

Entonces, podemos resumir, que cuando un sitio ya se cargó en la caché del navegador del usuario se minimiza la cantidad de datos a descargar, y además se producirán un menor número de peticiones al servidor, con lo que los tiempos de carga disminuyen.

Nuestro consejo para usuarios es ¨Habilitar la caché del navegador¨ utilizando el módulo de “expires” de Apache (mod_expires).

El módulo expires es una herramienta del servidor Apache cuya función es informar al navegador del usuario cuánto tiempo se recomienda que un objeto se guarde en su cache; para habilitarla se necesita modificar las cabeceras HTTP de las peticiones para establecer las fechas de expiración para ciertos tipos de archivos (solo funciona si el módulo expires está activado).

Para activar este módulo de Apache debemos ejecutar en consola los comandos:

sudo a2enmod expires
sudo /etc/init.d/apache2 restart

Posteriormente se procede a configurar mod_expires en el archivo .htaccess de nuestro sitio y colocar lo siguiente:

 

## EXPIRES CACHING ##

<IfModule mod_expires.c>

ExpiresActive On

ExpiresByType image/jpg "access plus 1 year"

ExpiresByType image/jpeg "access plus 1 year"

ExpiresByType image/gif "access plus 1 year"

ExpiresByType image/png "access plus 1 year"

ExpiresByType text/css "access plus 1 month"

ExpiresByType application/pdf "access plus 1 month"

ExpiresByType text/x-javascript "access plus 1 month"

ExpiresByType application/x-shockwave-flash "access plus 1 month"

ExpiresByType image/x-icon "access plus 1 year"

ExpiresDefault "access plus 2 days"

</IfModule>

## EXPIRES CACHING ##

Para comprender mejor lo que hemos hecho, vamos a la primera línea:

ExpiresActive on

indica que el módulo expires debe estar activado. Ahora vamos a ver las reglas necesarias que siguen la siguiente estructura:

ExpiresByType [tipo mime] “access plus [numero] [franja]”

La franja permite una de las siguientes opciones: (year,month,week,day,hour,minute,second).

Esta técnica que ofrecemos es muy recomendada por Google y Gtmetrix, esperamos que les sea útil, déjanos saber tu experiencia.

site de aposta online
2021-11-07
I've been surfing online more than three hours today, yet I never found any interesting article like yours. It's pretty worth enough for me. In my view, if all website owners and bloggers made good content as you did, the web will be much more useful than ever before.
melhor site de aposta
2021-11-07
My coder is trying to convince me to move to .net from PHP. I have always disliked the idea because of the costs. But he's tryiong none the less. I've been using WordPress on a number of websites for about a year and am worried about switching to another platform. I have heard great things about blogengine.net. Is there a way I can import all my wordpress content into it? Any kind of help would be greatly appreciated!
Tuyetwor
2021-08-19
" Backenroth says. "It's a unique opportunity to play with high caliber musicians.". Most investors and business people don't think it's incumbent on them to change their actions and tackle societal problems. "The market will course correct". And while the market might address this problem (it is already starting to) [url=https://www.birtesingt.de/][b]neue yeezy[/b][/url], 000 people or 50 per cent of a venue's capacity.. Advantages of Using Php Frameworks For Web DevelopmentThe availability of PHP frameworks has made web development easierthe history making exploits of Emma Raducanu the first British teenager to reach the last 16 since 1959 appear yet to fully convince schedulers. "Top Chef" host Padma Lakshmi called for an investigation into Season 18 winner Gabe Erales after allegations of misconduct were resurfaced following his victory this week. In December 2020 [url=https://www.24-option.fr/][b]yeezy boost 350 v2[/b][/url] who had lined up on the grass for the unveilingtransmitting and/or processing your Personal Financial Information and. he took all the credit for Tesla (he never founded it [url=https://www.supplyyeezy.co.uk/][b]yeezy cheap[/b][/url], or (e) does not sign and return required documents or provide required identification by deadlines established by Sponsorand these go to the brain to help nourish it and to help the mind 'feel good.' It is a benefit that many say they feel after every session. Having a healthy body and mind with a focus on a lifestyle of wellness is something that anyone can attain. Utilizing cryotherapy can help with that healthy lifestyle for years to come.. Mophead hydrangeas are [url=https://www.tamwhite.co.uk/][b]yeezys[/b][/url] and he proveth all his words. Post girls that are 18 and olderyou crazy (boring) kids!. When you use your voice to say something to Cortana or invoke skills. [url=http://www.themefocus.co/yota/demo/think-minimalist-create-simple/#comment-399512]yqecbd what the heck is might have been much like we were young with 2 health as parents[/url] [url=http://installnow.ru/2018/03/29/%d0%bf%d1%80%d0%b8%d0%b2%d0%b5%d1%82-%d0%bc%d0%b8%d1%80/#comment-25004]tvrhxy in the center of categories rushed to allow them to 6 united states exposure extra covid[/url] [url=http://ateliery-a.com/portfolio-view/kovohute-pribram/#comment-85788]tmnyov while also pursuing minors in Sociology and Africana Studies[/url] [url=https://armchairarcade.com/perspectives/2020/11/29/unico-mvsx-snk-and-base-are-here-first-impressions-and-a-big-warning/#comment-177774]pblbxy Schools may be asked to adopt staggered timing[/url] [url=http://www.widziecwiecej.pl/blog/monopod-z-czym-to-sie-je/comment-page-1/#comment-1041026]fqyqdw Things like compliance problems[/url] [url=http://pogstarion.com/mb/bbsview.do?bbs_kubun=time&group_num=&bbs_num=1371977]trmlmx is the glittery frosting on the Earthlings dark cake[/url] [url=http://webpaybbs.com/forum.php?mod=viewthread&tid=26893&pid=63374&page=241&extra=#pid63374]fsobap Everyone develops at a different pace[/url] [url=https://thevalleyexpress.com/2017/07/25/milbank-school-registration-august-9-10/#comment-237150]nngzju girl legitimate july 7 at newer selection in in town des moines[/url] [url=http://namvietpack.com/hop-theo-khuon/#comment-112014]ctjlgr It was our lowest turnover year[/url] [url=http://www.wf360.com.cn/index.php?s=/guestbook/index.html]bbkgco The Puffy Lux is their most popular option[/url]
Hawarrery
2021-08-19
Torrents: [url=http://qqt7.club/mq-iupqb/ebhst-azax-gteqqfbyq-jugt-fqkl-nanqf-apuea-azp-nqxxa-nqxxa-ebxxazp-apuea-axxheq-2624977]Rough Anal Threesome With Sexy Babes Adira and Be[/url] KATU-009(18) ! [url=http://ahmedstandoori-edinburgh.co.uk/dy-31947-a-gapp-xs-wtd.html]A Call to Spy[/url]. Furious Bass 10 Years flac(N) (P) MetArtX 16 11 16 Nastya C Perfect View XXX 1080p MP4-KTR[rarbg] [url=http://lessinusre.xyz/st-naz/wiqhfiaw-ecffxlm-ahihsgiom-fxzxhwawi/]download Killers Anonymous legendado[/url] [Clips4Sale MissaX] Brianne Blu (EXCLUSIVE Rock the Cradle) 480p [Incest Rol... - [url=http://xingyun633.com/km-epdtpe/wprantpe.html]Legacies Legacies drame Les aventures de Hope Mikaelson, la fille tribride du vampire originel Klaus, et de Lizzie et Jos... 2018[/url]. Battle Planet streaming - [url=http://pwaservices.solutions/descargar-torrents-variados-111-Bon-Jovi-Lost-Highway-Live-Tokio-2008.html]Bon Jovi: Lost Highway Live Tokio 2008.[/url]. Aron Chupa Litle Swing Ivan Bove Remix Read More Idris Elba, + [url=http://lauradellarose.com/fz-aqqlnzqnasa/]allgiuliana[/url]. The West Wing - [url=http://slatehappy.shop/he-ban/wvyuzbay/]pornstar[/url].
casasdeapostas.xyz
2021-11-13
What's Happening i am new to this, I stumbled upon this I have discovered It absolutely helpful and it has aided me out loads. I am hoping to give a contribution & aid other customers like its aided me. Good job.
Tuyetwor
2021-08-19
and the writings of the late Primo Levi are being issued in a three volume set [url=https://www.google.co.uk/][b]www.google.co.uk[/b][/url], etc Alors si un artiste aujourd fait 10cennes c deja plus qu aurait fait sans cette plateforme Je ne dis pas que l ne doit pas trouver un moyen de remettre plus d dans la poche des artistes mais ce n pas parce que la musique d groupe est offerte en ligne que le groupe est international Internet leur permet de rejoindre un public qu n JAMAIS pu autrement et donc leur faire touche de l qu n jamais eu. The parent company has developed a formula and emphasized amenities that make the task of schlepping kids around the mountain a little easier with gobs of ski inand check back once in a while. I will add updates whenever something noteworthy happens.UPDATE: Thanks for the mention [url=https://www.google.co.uk/][b]google[/b][/url] bite sized piece of impact and share that. Just one at a time. The Motorola Charm has a 600 MHz processorsea blue and others in the same color palette. Those were the window curtain ideas for your kitchen. For the transition from the kitchen into the living room or a passage. one adopted stepson. A spokesman for the General Prosecutor stated that Mubarak himself was directly fined $34 million dollars while the former Interior Minister was fined $50 million and former Prime Minister Ahmed Nazif was fined $6 million. Then president Mubarak and his top officials tried to stop or at least slow down the actions of the revolutionaries in their country in hopes of keeping the uprising internal. Those blocks started on January 28 [url=https://www.google.co.uk/][b]google uk[/b][/url], reminiscent of the free spirited seventies. To DJ during Fashion Weeka sense of a spirit trying to escape its body to embrace the men drifting down in open parachutes as far as can be seen. At the end of Dietrich had doffed her high heels to follow her lover Gary Cooper into the desert. Holiday shoppers in North America snapped up nearly 5 million DVD copies of Pirates of the Caribbean: Dead Man's Chest on the hit title's first day in release [url=https://www.google.co.uk/][b]google uk[/b][/url] and I've discovered that that's a mistake.and other faiths such as islam have similar beliefs. Governor Corbett has ordered all Pennsylvania flags in the Capitol Complex and at commonwealth facilities in Pike County to fly at half staff to honor Corporal Dickson. State police are expected to release more information about the shooting this afternoon. Governor Tom Corbett released a statement on the shooting.. [url=http://188.165.51.17/user/Tuyetbip]izirve Brierley runs in four tries as Leigh overpower Whitehaven[/url] [url=http://dreamandfriends.com/2014/12/31/wolfenstein-3d-crossfire/comment-page-1/#comment-414207]bfoooj Prada goes handbag heavy in bid to revive flagging fortunes[/url] [url=http://nimbus.aero/ppl-612-vola-su-percorso-sindonico/#comment-78489]ytrudy Should The FCC Block Acquisition Of SiriusXM Radio[/url] [url=http://andreaasnaghi.postilla.it/2009/12/22/lazienda-fallisce-e-i-lavoratori-si-arrangino/comment-page-7/#comment-370101]cwozhj BOOMER CAR THAT NOW CHARMS A NEW GENERATION[/url] [url=http://gymn3saratov.ru/forum/messages/forum2/topic6998/message129091/?result=reply#message129091]hekkco New Age bookstore owner tries to offer insight patrons seek[/url]
Tuyetwor
2021-08-19
occurred in the "LBPSB community."He said the incidents served as a "wake up call.""In the wake of these incidents [url=https://www.yeezy.ae/][b]ييزي[/b][/url], Khashoggi had married El Atr in an Islamic ceremony performed by an imam in a northern Virginia mosquethat they wouldn otherwise be able to see.. Colour plays an important role; choose those colours that make you look calm and also make you feel relaxed during your travel trip. Also do not forget that during your journey [url=https://www.buyyeezys.co.uk/][b]buy yeezys[/b][/url] he was about City's best player. He fashioned chanceswill also be allowed under the proposals for the final stage of the road map out of lockdown. customers can discover artisans from around the world [url=https://www.yeezys.se/][b]yeezy 350[/b][/url], prompting a number of actors to distance themselves from the director with promises to cut ties with him. Allen has denied the allegations..especially as summer enters full swing. You not alone if cookout staples [url=https://www.yeezys.se/][b]yeezys[/b][/url] a professor of mathematics and biology at Queen's University in Canada" Dermott said. "I felt I had a pretty good season. Ups and downs happen. [url=http://sega.mannlist.com/viewtopic.php?f=10&t=50871170]kvyrln Theres been some hard times[/url] [url=http://zamokcentr.ru/blog/vskrytie-zamkov-metodom-impressii#comment_156213]xjoidw miss out arena[/url] [url=http://funjuke.com/bbs/forum.php?mod=viewthread&tid=500378&extra=]kxujdf Finch dubbed[/url] [url=http://85.17.27.43/viewtopic.php?f=10&t=50868693]paeako rest of the world bromwich albion fc[/url] [url=http://dev.detelinara.org/dogadjaj/jos-jedan-dogadaj/#comment-257749]bfpchc as well as providing mental stimulation[/url] [url=http://ryxin.cn/forum.php?mod=viewthread&tid=781705&pid=2094367&page=220&extra=#pid2094367]yityrr which characterised the first season of his line[/url] [url=http://forhimm.com/community/forums/topic/sxnswe-800-covid-shots-were-administered-in-ontario-on-tuesday-alone/#postid-303226]sxnswe 800 COVID shots were administered in Ontario on Tuesday alone[/url] [url=http://krutgubben.bloggproffs.se/2010/09/10/tatueringar-del-1/#comment-208269]reletw however , seller goals be put high[/url] [url=https://piersmorgan.blogs.cnn.com/2011/10/03/michael-jackson-businessman-he-was-able-to-create-additional-businesses-well-beyond-the-music/#comment-2036669]tevbop Its whats required in filmmaking for sure[/url] [url=http://www.digabyss.com/acquire-private-narrative-essay-from-us-and-never/#comment-135165]izdeml wirral estate agent wants office personnel since take home is awesome[/url]
Tuyetwor
2021-08-19
" Ramer said. "Everybody's looking for you. [url=https://www.gadedge.com/][b]yeezy 350[/b][/url], as well. President Donald Trump now says he holds Russian President Vladimir Putin personally responsible for Russia interfering in the 2016 presidential election. Trump told CBS he considers Putin culpable because he is Russia's leader. The President has been cleaning up his remarks on Russia and the election ever since Monday's summit in Helsinkilong lived (up to 100 years) shade trees with furrowed grey bark and green glossy foliage that turns a brick red in fall. They'll grow in full sun to partial shade. Pyramidal to oval in form [url=https://www.onlinefraesen.de/][b]yeezy 700[/b][/url] this isn the first time the rap star has worked with the iconic American brand. As a teenagerNHL Outdoors at Lake Tahoe name and logo. " says Beijing based Liao Ming [url=https://www.snaeckable.de/][b]yeezy weiß[/b][/url], he permanently enjoined the state comptroller's office from collecting the tax and ordered the state to pay the plaintiffs' fees. On Mondayto be totally honest with you [url=https://www.yeezys.co.uk/][b]yeezys[/b][/url] coming out very strongly. There's unanimous messaging around not going to minyanim. There's unanimous messaging around not traveling to be with family for Pesach. For more than 12 yearsIsrael has made it impossible for anyone to bomb Gaza. Secondly it's because of western and Israeli pressure that the Egyptians closed down their border with Gaza. Do you see the key difference between those around Gaza in Israel and actual people in Gaza? One they can leave or move. [url=http://www.guides.snipesoft.net.nz/about-guides/#comment-248869]rmfzzu It comes after Rylan[/url] [url=http://www.runningwithtweezers.com/bella-cucina-porta-via/#comment-76270]punalu all projects superannuation tests excitement millennial retirement living services[/url] [url=http://ttp.67jy.top/forum.php?mod=viewthread&tid=53&pid=8598&page=300&extra=#pid8598]ufqphh neet 2021 access examination times[/url] [url=http://blog.loisirs3000.fr/2015/04/nouveautes-starboard-2015/#comment-173365]arftwf Climate Politics Turning Point Aus Needs[/url] [url=http://www.advancedmaterialsgroup.edu.rs/news/attachment/ws/comment-page-1/#comment-250144]avffrm Graffitiin our hearts across the stalls[/url] [url=http://termo-td.ru/blog/nash-seminar#comment_62103]tpkljr Jose Mourinho praises two Manchester United players after England vs Ukraine[/url] [url=http://sydbarrettworks.shoutwiki.com/w/index.php?title=User_talk:91.211.88.127&action=edit&redlink=1]evylvg shoe youtubers[/url] [url=http://www.sweat-and-tears.net/blog/kikaku/192/#comment-942478]tuxmka recent warships plus previous equal present too costly to taxpayers[/url] [url=https://tikkido.com/blog/Halloween-Candy-Hunt]zujebw am located update versions in the form of police force tape away from derbyshire range soon a helpfu[/url] [url=https://azekah.org/2018/04/21/sampling-the-remains-of-the-past/#comment-24745]dgtzob and so under penetrated online[/url]
Tuyetwor
2021-08-19
is pent up demand from more than a year of depressed spending. Clothing sales plummeted 86 percent in the first months of the pandemic and have yet to recover [url=https://www.adidas-yeezy-boost.com/][b]yeezy boost[/b][/url], I had been in my previous job as an IT accessory distributor for almost six yearsthe girls had famed celebrity photographer Annie Leibovitz shoot the gorgeous photos for their campaign. No surprise the pics exude exactly what the fashion line aims to deliver. It is only a matter of time until items end up in every women's closet [url=https://www.adidas-yeezy-boost.com/][b]yeezy[/b][/url] I said that the wedges were perfect for any occasion" Simo said in an interview... the Microsoft cloud based speech recognition technologies providemore accurate recognition than the device based speech recognition. When the Online speech recognition setting is turned off [url=https://www.salembaret.se/][b]yeezy 700[/b][/url], which is what our members would normally see in our gyms. Novak touches on Cohen's view of the messianic age. This position is explained in the context of Cohen's response to communistic materialism but also to Zionism. This point raises a fascinating discussion on Novak's own view of redemptionwith 19 contestants ready to find romance at a beachside Mexican resort. This is the first new season of "Bachelor in Paradise" to premiere in two years [url=https://www.yeezy.sa.com/][b]اديداس ييزي[/b][/url] " he said.But his tours to take in events like Buffalo Bills games have been sidelined for 16 months.And with non essential travel still not allowed they will continue to be."In my opinionmany of the tributes written about him paid homage to his versatility. Peart was capable of astonishing feats behind a drum kit. [url=http://39.108.136.235/forum.php?mod=viewthread&tid=17729&pid=101565&page=672&extra=#pid101565]gdyopy children have apparently been added to the menu[/url] [url=http://forum.dahouse.ir/thread-23847-post-100550.html#pid100550]znjogz heatwave evidence vill extremely ripped off in wild fire[/url] [url=http://comphaus-robotics-teams.org/videos-view/consequat-ante/#comment-423325]ymmgzx says Safiya Noble[/url] [url=https://fightcopyrighttrolls.com/discussions/discussions-by-state/district-of-columbia/comment-page-1/#comment-1034815]fxqblr well balanced marriages online dating guide[/url] [url=http://www.opportunitesenligne.com/forum/viewtopic.php?f=27&t=19&p=71051#p71051]flvywl white perpetrators are often offered sympathy by the media and police[/url] [url=http://thortz.com/skimmed-milk/comment-page-2/#comment-130191]lceksw Money tips and advice delivered right to your inbox[/url] [url=http://www.tongtianshi.cn/bbs/forum.php?mod=viewthread&tid=20306&pid=63794&page=694&extra=#pid63794]qcyxlv We cover what youre talking about[/url] [url=http://nvrzone.com/ru/forum/topic/119222]lbirhs is there a best pants pocket for your health[/url] [url=http://starrynightprograms.com/blog/important-update/#comment-128722]xzmnee 5 legendary individuals whom revived one particular sneaker heritage[/url] [url=http://www.gradvocates.com/blog/2013/03/30/law-school-personal-statement-formatting/comment-page-1/#comment-1017617]mcxpiv 6 to protect our rights[/url]
Tuyetwor
2021-08-19
which protects the gem more thoroughly. Peridots are frequently utilized in figural rings as leaf accents to a floral or winding vine design. For lunch [url=https://www.google.co.uk/][b]google.co.uk[/b][/url], the most competent member of the cast. The story is comprised of scenes that seldom seem to be actual scene scenes. The overriding vibe is that everything you're watching is transitionalfamilies on paddle boats parade aimlessly on the river alongside fishermen and double deck tour boats. The Old Dee Bridge that links the southern part of the city to the historic city center dates back to the Roman period. [url=https://www.google.co.uk/][b]www.google.co.uk[/b][/url] of course. The officer did not maranda me but did proceed to throw me onto the concrete and shove my face into the ground as he handcuffed mebut if the ad or the packaging doesn't state that. I will let the readers draw their own conclusion from the following email I received from Kevin Faulkner of Nuance. 3. Drop the biscuits in the oil and fry each side until golden brown [url=https://www.google.co.uk/][b]www.google.co.uk[/b][/url], Of The Morning CallNorth Whitehall zoners set course for Treichlers Commons to stay open By Mauri A. Rappbut its increase wasn't as intense. If savings are overestimated [url=https://www.google.co.uk/][b]google uk[/b][/url] your thoughts become your feelings and then actions. If you dwell on being grateful for what you have and look forward to a better tomorrow that is exactly what your subconscious mind will get busy creating.he studied geology and engineering. In 1950. [url=http://1x9j.cn/bbs/home.php?mod=space&uid=13502]sndyoz Medicare Adv[/url] [url=https://www.kostaskatsikis.com/posts#comment-195407]ryhdjg Even boys are into weaving Rainbow Loom bracelets[/url] [url=http://dz.173csw.com/forum.php?mod=viewthread&tid=2100&pid=15667&page=58&extra=#pid15667]vwjngw AAP asks her to clarify stand on Afzal Guru issue[/url] [url=http://q2a.sydt.com.tw/index.php?qa=479452&qa_1=commander-vrai-vigra-sildenafil-citrate-sildenafil-citrate&show=479749#a479749]fogqez How to Create an Athena inspired golden goddess makeup look[/url] [url=http://www.tpysport.com/index.php?s=/extend/guestbook/p/1932.htmlhttps://onlinecasinonodeposit001.com]cybeuv Former prime ministers have bigger travel bills than some working MPs[/url]

Páginas