Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-19-2017, 10:36 AM   #1
Cameltoepro
Confirmed User
 
Cameltoepro's Avatar
 
Industry Role:
Join Date: Sep 2012
Posts: 1,430
Meta Tag Cache

When building galleries as an affiliate, should you have a no-cache or a cache for this meta tag http-equiv="Cache-Control" content="no-cache"?

Thanks
__________________
Awesome Hosting At Awesome Pricing At Vacares
Cameltoepro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-20-2017, 02:49 AM   #2
porncrash
Confirmed User
 
porncrash's Avatar
 
Industry Role:
Join Date: Mar 2017
Posts: 59
It depends on what you want.
If you want to cache those pages you can add on each page a meta tag:
<meta http-equiv="Cache-control" content="public">

But keep in mind, that maybe not all users will see changes if you are using cache.

A better way is to use .htaccess to enable browser caching or even better configure it in your apache2 config.
You are more flexible with this.

Code:
<IfModule mod_expires.c> 
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 1 seconds"
  ExpiresByType image/x-icon "access plus 2592000 seconds"
  ExpiresByType image/gif "access plus 2592000 seconds"
  ExpiresByType image/jpeg "access plus 2592000 seconds"
  ExpiresByType image/png "access plus 2592000 seconds"
  ExpiresByType text/css "access plus 604800 seconds"
  ExpiresByType text/javascript "access plus 86400 seconds"
  ExpiresByType application/x-javascript "access plus 86400 seconds"
</IfModule>
or

(this is my way to cache images, css etc.)
Code:
<FilesMatch "\.(?i:gif|jpe?g|png|ico|css|js|swf)$">

  <IfModule mod_headers.c>
    Header set Cache-Control "max-age=172800, public, must-revalidate"
  </IfModule>

</FilesMatch>
porncrash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2017, 12:26 PM   #3
flyinglion
Registered User
 
flyinglion's Avatar
 
Industry Role:
Join Date: Jan 2017
Posts: 48
As porncrash told u can use it many ways but i usually prefer to use it with .htaccess
flyinglion is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-21-2017, 02:53 AM   #4
reddygs
Registered User
 
Industry Role:
Join Date: Jul 2017
Posts: 31
Use .htaccess
__________________
Regards
Reddy .Medha Hosting | Managed Dedicated Servers
reddygs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
meta, cache, tag, no-cache, http-equiv=cache-control, content=no-cache, galleries, building, affiliate
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.