Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media


Welcome, Guest. Please login or register.
Did you miss your activation email?

February 04, 2023, 02:55:30 AM

Login with username, password and session length
  • Total Members: 3856
  • Latest: Bixby
  • Total Posts: 193940
  • Total Topics: 21130
  • Online today: 51
  • Online ever: 3540
  • (September 02, 2022, 06:38:54 PM)
Users Online
Users: 2
Guests: 33
Total: 35

Author Topic: imPluse2 Leverage browser caching  (Read 6492 times)

0 Members and 1 Guest are viewing this topic.

Offline abraamz

  • Newbie
  • *
  • Posts: 4
imPluse2 Leverage browser caching
« on: April 17, 2015, 01:51:43 PM »
Leverage browser caching
Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.
I understand that many of the images should be taged to expire after some time.
Is this theme related?
Is it something that can be set from the theme at each <img> tag, from SMF with a php function or at server level like with an .htaccess file? 

Offline bloc

  • Founder
  • *
  • Posts: 5232
    • Bloc
Re: imPluse2 Leverage browser caching
« Reply #1 on: April 17, 2015, 02:45:56 PM »
Well, sort of..but that part is a bit more complex. Images supplied by the theme can be somewhat leveraged by setting the theme headers in the HEAD section(its not usually, which means its using the browser default)..but downloading an attached image is all done in Sources and the theme have no control over it.