are you talking about .jpg, .png etc.?
Thread Starter
HgtuRgg
(@kalyanbratadas)
yes. I mean to say .. I have created a sub domain and uploaded an image there. you can see the image here http://imgs.iconicwebteam.com/office-employees2.png ..
As you can see, the image has been uploaded on a subdomain created on the main domain iconicwebteam.com..
Will it still cache my files if I continue to upload images (png jpg) or maybe static css/js files there?
don’t worry, it works well.
Thread Starter
HgtuRgg
(@kalyanbratadas)
oh great.. thanks man !! and thanks for this lovely plugin.. 🙂
Thread Starter
HgtuRgg
(@kalyanbratadas)
oh! BTW, just let you know, not sure whether it makes sense here or not..
The root document of this sub domain (imgs.iconicwebteam.com) is not public_html/imgs.. It’s outside public_html.. any difference here.??
are you talking about images which are called from style.css ?
Thread Starter
HgtuRgg
(@kalyanbratadas)
not exactly.. let me be elaborate then. I created a sub domain imgs.iconicwebteam.com (you can see two files there visiting this URL)..
Usually, the path to sub domains created via cPanel are – /public_html/sub-domain-name.. .
However, in my case it’s /iconic-imgs
if you call image with “http” or “http”, it works well but if you call “../../” like that, it does not work.
Thread Starter
HgtuRgg
(@kalyanbratadas)
well..I did not get your answer though.. can you please help me understand if this video file http://imgs.iconicwebteam.com/home-background.mp4 being cached or not? I am unable to verify this..
thanks once again for your time by the way..
Thread Starter
HgtuRgg
(@kalyanbratadas)
oops!! may I get the reason for this? is it because it’s a video file or is it anything to do with the sub domain?
(sorry to take a lot of time off you today)
static files are not cached because they are static and there is no need to cache 🙂
Thread Starter
HgtuRgg
(@kalyanbratadas)
oh!! I must have understood this earlier.. Sorry for this.. So, just to enable browser cache, I understand, we need to work around on .htaccess file in the sub domain directory something like
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType video/mp4 "access 1 month"
ExpiresByType video/webm "access 1 month"
</IfModule>
Am I write here? Is it needed as well?
If you enable gzip or browsercache, there is no need to enable for sub-domains