Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function to add timestamp to image?
#5
(2013-04-05, 09:16:24)shawn_a Wrote: Well typically you use expire or other headers depending on the files you could control it via upload sub folders or wild card file names.

Could it work with a .htaccess file in the directory where these particular images are uploaded? Because they'll always be in the same place.

I found this example:
Code:
<FilesMatch "\.(jpg|jpeg|png|gif)$">
Header set Expires "Thu, 15 Apr 3015 20:00:00 GMT"
</FilesMatch>

I also found:
Code:
<IfModule mod_expires.c>
# disable caching forthis directory mod_expires for this directory
ExpiresActive off
</IfModule>

Which do you think might suit better? I'm way out of my comfort level with this stuff! Wink
Reply


Messages In This Thread
Function to add timestamp to image? - by trmash - 2013-04-04, 15:52:26
RE: Function to add timestamp to image? - by trmash - 2013-04-05, 09:25:57



Users browsing this thread: 1 Guest(s)