Activity Stream
48,167 MEMBERS
6836 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member

    Default How to add expiry date to external objects?

    I don't know if this is possible, but is there a way to determine expiry dates on external objects ?




    I used this code on .htaccess, but it's still not working.

    Code: 
    # No ETags
    Header unset ETag
    FileETag none
    
    # Caching -- mod_headers
    <IfModule mod_headers.c>
    
    # 1 Year = 29030400s = Never Expires
    <filesMatch "\.(ico)$">
    Header set Cache-Control "max-age=29030400, public"
    </filesMatch>
    
    # 1 Month = 2419200s
    <filesMatch "\.(css|pdf|flv|jpg|jpeg|png|gif|swf)$">
    Header set Cache-Control "max-age=2419200, public"
    </filesMatch>
    
    # 2.5 Days = 216000s
    <filesMatch "\.(js)$">
    Header set Cache-Control "max-age=216000, private"
    </filesMatch>
    <filesMatch "\.(xml|txt)$">
    Header set Cache-Control "max-age=216000, public, must-revalidate"
    </filesMatch>
    
    # 5 minutes = 300s
    <filesMatch "\.(html|htm)$">
    Header set Cache-Control "max-age=300, private, must-revalidate"
    </filesMatch>
    
    # Disable caching for scripts and other dynamic files
    <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
    Header unset Cache-Control
    </FilesMatch>
    </IfModule>
    Rocke Reviewed by Rocke on . How to add expiry date to external objects? I don't know if this is possible, but is there a way to determine expiry dates on external objects ? http://s2.imgkeep.com/i/00010/rpjpn4ll8mkf.png http://s2.imgkeep.com/i/00010/369nza8sliue.png I used this code on .htaccess, but it's still not working. # No ETags Header unset ETag FileETag none Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Nvm, please delete this post.

  4.     
    #3
    Member
    No, you can't add expiry headers to your externally hosted files.


  5.     
    #4
    Member
    thanks ProtoWorker, I guess I will need a CDN for that.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. US Govt. Objects To Megaupload Hiring Top Law Firm
    By ShareShiz in forum News & Current Events
    Replies: 2
    Last Post: 13th Apr 2012, 06:05 PM
  2. Adding Expiry Headers
    By EnCiPh3r in forum vBulletin
    Replies: 3
    Last Post: 20th Jan 2011, 07:41 AM
  3. [c#] variables, ifs, simple math and drawing objects
    By jayfella in forum Web Development Area
    Replies: 23
    Last Post: 18th Jun 2010, 04:52 PM
  4. How to streamline objects in PHP!
    By litewarez in forum Tutorials and Guides
    Replies: 8
    Last Post: 29th May 2010, 05:26 PM
  5. [Selling] Rapidshare Account Expiry 2010 December | Screenshots Available
    By -saMmy- in forum Completed Transactions
    Replies: 1
    Last Post: 17th Apr 2010, 10:22 AM

Tags for this Thread

BE SOCIAL