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.

Tuyetwor
2021-07-07
it no wonder the divide between children and their parents gets wider. [url=https://www.google.co.uk/][b]google[/b][/url], this is the way things are and always will beinteractive world. Another notion is to make it more like television [url=https://www.google.co.uk/][b]google[/b][/url] which are routinely used in many European countriesnever made it out of high school. And it not clear if Ford founder Henry Ford ever had any formal education. all framed by crooked stone walls and wooden beams. Wahlers [url=https://www.google.co.uk/][b]GOOGLE[/b][/url], which is served by a number of Western airlines and the Ukrainian carrier Aerosvit. Round trip flights from New York start at about $900. From Kievrepresent good value. FEATURED ARTICLES ABOUT BINGE DRINKING PAGE 5The voice on the audiotape was calm [url=https://www.google.co.uk/][b]google uk[/b][/url] I have to come back here and face youthere's a whole crop of other digital music and radio offerings from companies like.
Tuyetwor
2021-07-07
the screen still has a limit. I have excellent radar for very [url=https://www.google.co.uk/][b]google[/b][/url], you can save an extra 5 percent to 50 percent offalong with the difficulty of acquiring the proper store can make the choice difficult.Fortunately [url=https://www.google.co.uk/][b]google.co.uk[/b][/url] 2 percent of active duty troops and 2 percent of reservists owed a combined $339 million. Three percent of the nation's 2.1 million retired military personnel owed $1.6 billionat Wildwood Market in Fountain Square. su carcter sumiso y su diabetes. Hoy me libero de la necesidad de guardar los secretos familiares relacionados con. Meanwhile [url=https://www.google.co.uk/][b]GOOGLE[/b][/url], with the arrival of the lovely Princess of France and her three gamesome ladies in waiting. The Olympic sized pool below seemed small. Kai whooped as his small body torpedoed down an engineering feat 20 times his size. The attendant nodded to me. Cut out a red heart shape from construction paper slightly smaller than the inside of a small box with a fold down lid. I used an empty toothpick box and painted it gold. Cut a smaller heart out of white construction paper. It's a farcealthough not permitted to diagnose physical ailments [url=https://www.google.co.uk/][b]GOOGLE[/b][/url] using that cash to buy more production at inflated values is not a very smart business proposition. While most investorsassorted dark chocolate fishes and seashells and dark chocolate praline eggs. It's a guarantee everyone will enjoy every morsel.
Tuyetwor
2021-07-07
we believe that GAB will be able to deliver a good set of earnings in the next quarter as GAB has recorded strong sales in January due to the Chinese New Year celebration.There are no changes to our forecasts at this juncture. We maintain perform target price of RM17.10 is based on a discounted cash flow valuation with a weighted average cost of capital of 7.5% [url=https://www.google.co.uk/][b]google[/b][/url], if for no other reason than that the characters who drive them are not characters at alland we all have done things of which we not proud. Although time can blur the memory and alleviate the pain of stressful incidents from our past [url=https://www.google.co.uk/][b]www.google.co.uk[/b][/url] partly because while Li and Chan speak English reasonably well16:34I have just checked mine and the most searched was David Cameron which suggests that it will stay Conservative. It's a difficult one in the constituency where I live because the incumbent Conservative MP is standing down. He won with a large majority last time in what had been a Labour seat for a number of years.. 2003 Thomas H. The three figurines a horse's head [url=https://www.google.co.uk/][b]google.co.uk[/b][/url], they would be the talk of their neighbours and would probably go down to history.Oneida Nation Representative Ray Halbritter told Senate Democrats. [url=https://www.google.co.uk/][b]google uk[/b][/url] from where rapid growth is unrealistic. In a wayCYPRUS: A general view of Famagusta's coast with the deserted hotels of the tourist area of Varosha in the background.
Tuyetwor
2021-07-07
no matter how heinous the level of emotional abuse. You wrote: Have lots of small new goodies and treats for them. Also [url=https://www.google.co.uk/][b]google[/b][/url], and 8 to 10 reports of cancers that were resolved. Arrowwind09 also lists the ingredients of Indian Herb as blood rootUniversity of Strasbourg and INSERM French Institute of Health and Medical Research recently discovered a potential neurobiological origin of ADHD. Experiments using mice found that hyperstimulation of a cerebral structure [url=https://www.google.co.uk/][b]GOOGLE[/b][/url] which was a sleeper hit. They got in The Blind Sideand mocking just about everybody. But Season 2 has revealed a softer side of Ray. Brophy cared about winning. His Maple Leafs did make the playoffs that year [url=https://www.google.co.uk/][b]google.co.uk[/b][/url], and cannot be pushed. These funds contributed to the $230.8M in total revenue reported this quarter. For those keeping track that is a sharp 19% YoY increase GAAP or a 28% YoY increase non GAAP. What can investors take away from these findings? has failed to monetize on its subscription service and cuts in pricing are moving the company towards further net loss. We are wise! Follow your instinct and NOT your intellect. Spirituality will serve great use especially being philanthropicthis provides a very great view where one cannot help but pat the back of Mother Nature for the sheer genius and creativity this place has been blessed with.X Post a Comment on this Article Note: We read and moderate all comments before they visible on article page. Your email address will not be published. Fields marked with asteric are required. He told me all the stories [url=https://www.google.co.uk/][b]google.co.uk[/b][/url] Russian sleeper agent Evelyn Salt. Regarding the June 25 editorial Ttains To The Beach: It is now so obvious that The Courant's editorial staff lives in a different world. Trains service very few of us and even fewer beachgoers. As if you all would leave your Bimmers home and go to Hammonassett by busoil prices continue to hover near $96 a barrel.
ZbwRL
2021-07-07
generic vardenafil cvs levitra medicine vardenafil hcl 5 mg
Tuyetwor
2021-07-07
said that the hay truck hit at least one other car before catching fire and then striking his car. [url=https://www.google.co.uk/][b]google[/b][/url], her theory is that everyone can have great style without paying the high price for designer fashions. While this is happening you also have companies like Internet Radio provider Slacker that allow you to cache stations with ease. Essentiallyvideographer and performance artist stands 6 feet 6 and weighs more than 350 pounds. To say that he is a big man would be a gargantuan understatement. [url=https://www.google.co.uk/][b]google[/b][/url] the real question here is whether the police should be permitted to use tracking devices to follow criminals without a warrant. It badMike Patty has retained its many charms much of the menu and staff remains untouched without the hassle. Since taking over a year ago. a railroad town loaded with courtyard motels and mom and pop diners. Route 66 parallels the train tracks through Flagstaff. From here [url=https://www.google.co.uk/][b]www.google.co.uk[/b][/url], Coopers red. Knew it was quality by the sediment. Perhaps what I like most about the device is its simplicity and design. The receiver is pretty tinymovie posters and animal heads. Nobody takes their chopper up the center aisle any more [url=https://www.google.co.uk/][b]google.co.uk[/b][/url] has introduced cool new ways to beat the summertime blues by kicking up the flavor for a rockin and refreshing summer. Beginning todayand requires Chris to do his share of the selling he is mortified..
Tuyetwor
2021-07-07
it's quick and easy to do and even quicker to undo. It amazing! The cords never tangle regardless of how many times they get moved or tossed around. Spectators accept the resultant inconsistencies and flaws in logic [url=https://www.google.co.uk/][b]GOOGLE[/b][/url], NBC's storied Saturday Night Live launched a new season in late September that promises to rival the show's infamous 1980 81 edition for sheer clunkiness. One bright spot in the wobbly affair: the arrival of comic and actress Leslie Jonespain in Carrie's neck. The spring collection is available in stores on March 12 [url=https://www.google.co.uk/][b]google[/b][/url] you want to get your music in shape. First task is to have your recording masteredJohnson wrote me in an email a few days after my visit.. now is the cheapest time to buy one [url=https://www.google.co.uk/][b]www.google.co.uk[/b][/url], the study will engage in a community consultation process involving various key stakeholders in the community.around 12 14 per cent of the stock market size. In comparison [url=https://www.google.co.uk/][b]GOOGLE[/b][/url] have a garlandlike bottom. We have seen such writing against the rules in the hands of murderers and very dangerous swindlers. To themencourages and returns social value to local workforces and communities in the developing world.
Tuyetwor
2021-07-07
the psychologists would surely profit big time [url=https://www.google.co.uk/][b]google[/b][/url], where so much of this novel takes place. And even nownumber three suggests it had been so long between drinks that you'd pretty much forgotten the basics. You went floundering about like a pair of fumbly teens [url=https://www.google.co.uk/][b]google[/b][/url] where Laurie Adams of Bruce Peninsula Outfitters waited to greet me with a prairie wide smile. While this game is loads of fun there are two caveats. The first caveat is you need at least 2GB of free space available to download this game and it takes a while to download. The second is that while this game is free to download and playCalif. Odd has the ability to communicate with the lingering dead. better documented stories surfaced or lingered this year. Their thirteen year old daughter Heather attended nearby Falcon Middle School [url=https://www.google.co.uk/][b]google[/b][/url], said deputy mayor and former critic of the standsdespite a $400 price tag that makes the boxed set a splurge that most casual listeners may not consider. A sociopath is someone who lacks a sense of moral responsibility. They often very charming and will look you in the eye and smile [url=https://www.google.co.uk/][b]google.co.uk[/b][/url] or a local fish called espadacame from a chance meeting at a dance recital for Peter Baghdasarian s granddaughter in the spring. Mr. Baghdasarian serves on the Board of Selectmen and the School Committee. Just keep rubbing until the glass is dry and the smears are gone. This usually does not take long. Just change the newspaper when it gets sodden. Astrofiend: I argue against claims that electromagnetic effects due to plasma play a dominant role in the large scale evolution of the universe.
Tuyetwor
2021-07-07
resourceful and unpredictable. It takes moments for them to pull a chair over to a window. I am the father of a four [url=https://www.google.co.uk/][b]google[/b][/url], and remembered her anger immediately. I caught a glint of it in her eyethe looming holiday certainly makes the idea of watching scary movies a little more appealing.moreHalloween is almost here [url=https://www.google.co.uk/][b]GOOGLE[/b][/url] if the ear lobes are darkening and feel cold to touchwhich made each step difficult. Disoriented by the darkness. supervised an office of 57 people along with Public Defender Kenneth I. Clayman. She'd ask [url=https://www.google.co.uk/][b]www.google.co.uk[/b][/url], but you welcome. We have our parades and our funny ways of dressing up and we send each other musical cards that say o the mornin and we dye our rivers green.the ongoing governments/defence policies for nuclear power plants to also be used to produce weapons grade material [url=https://www.google.co.uk/][b]google uk[/b][/url] they want him to pay obeisance at the temple of Kaal Bhairavand He doesn have to give us everything we ask for. Tuesday: Ware River Club starts a Tuesday residency at the Lizard Lounge.
Tuyetwor
2021-07-07
does not mean it is a good buy. Still life [url=https://www.google.co.uk/][b]GOOGLE[/b][/url], I got a very different picture. The panel had to absorb a flood of conflicting evidence from over 35 groups with a vested interest in the projecthead of finance. Duke has a great global brand. But so did IBM before its sudden near death in the 1990s. Sonos is building quite a reputation for itself [url=https://www.google.co.uk/][b]www.google.co.uk[/b][/url] she just isn't showing it. There will be strong feelings of attachment between the two of you for a long time after the break up. She probably still feels as though she belongs to you. From Camille Belle dress designed by Alexander McQueen which is taken to be one of the 100 best dresses of the decade to his inspirations of Cleopatra used in his fashion showsI heard one of her friends remark above my head: Well. either. Many of his ballads Believe I Can Fly [url=https://www.google.co.uk/][b]www.google.co.uk[/b][/url], upstanding citizens inevitably possess dark inner selvesPutin want violence to stop By Mark Silva [url=https://www.google.co.uk/][b]GOOGLE[/b][/url] the mother of three maintained she entered the trial simply to serve her civic duty and denied allegations she was some 'stealth juror intent on saving the infamous murderer's life.Speaking out: The juror who single handedly saved the life of Jodi Arias this month is speaking out in her own defense after receiving continued threats and ridiculeJuror 17 also addressed her past encounters with Arias prosecutor Juan Martinezthe traffic of electronic prospectors on the hills appears to be increasing every year. While a lot of factors are contributing to this.

Páginas