Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 08-23-2014, 12:07 PM
stormshadow's Avatar
stormshadow stormshadow is offline
Contributing Member
 
Join Date: 06-03-11
Posts: 118
iTrader: 0 / 0%
Leveraging Browser Caching

I'm working with google PageSpeed Insights and was wondering instead of setting files to expire by type, you could set them to expire by the individual file.
Example of how to set expiry by type below using the .htacess:
Code:
## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 2 days" </IfModule> ## EXPIRES CACHING ##
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 08-28-2014, 02:09 AM
anushka123 anushka123 is offline
Contributing Member
 
Join Date: 03-19-14
Posts: 81
iTrader: 0 / 0%
Is this code work only with apache or IIS as well?
 
Reply With Quote
  #3  
Old 08-28-2014, 05:32 AM
snakeair snakeair is offline
Super Moderator - Rest in Peace 2018
 
Join Date: 12-31-07
Location: Medford, NJ
Posts: 54,771
iTrader: 3 / 100%
Quote:
Originally Posted by anushka123 View Post
Is this code work only with apache or IIS as well?
Do you have a resolution to the thread creators issue?
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Browser Caching to Improve Site Speed: How to Check and Implement It snakeair SEO Forum 0 12-28-2012 07:59 AM
Leveraging Current Events When Link Baiting snakeair Marketing Forum 0 04-06-2011 09:53 PM
Are You Leveraging the Power of LinkedIn? snakeair Social Network Marketing 4 01-24-2010 06:02 PM
Offline advertising, and leveraging the community watley Marketing Forum 10 11-27-2006 09:41 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 02:25 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC