Current time: 12-16-2017, 05:56 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Caching of static assets?!
02-20-2017, 10:07 PM
Post: #1
Caching of static assets?!
Hi,

this is the result of a test:

Quote:Leverage browser caching of static assets: 0/100
FAILED - (No max-age or expires) - http://www.domain.com/css.css
FAILED - (No max-age or expires) - http://www.domain.com/p/logo.png
FAILED - (No max-age or expires) - http://www.domain.com/favicon.ico

What does this mean? I SHOULD use caching or not?

But how can i use caching ONLY for images/css?!?

It's an event page with hourly updates (but the logo etc. will not change).

So it should make sense to use:

<meta http-equiv="cache-control" content="no-cache">

But how can i exclude the images/css from that?!

Thanks!
Find all posts by this user
Quote this message in a reply
02-23-2017, 12:23 PM (This post was last modified: 02-23-2017 12:25 PM by avalanch.)
Post: #2
RE: Caching of static assets?!
Static assets are mostly:
CSS, JS, Images, Fonts, Music

And yes you should use caching, this way it loads the resource stored on your visitors computer for each extra visit they make.

A simple google search will send you in the right direction.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)