cache.manifest & Yahoo webhosting?
January 19, 2010 2:31 PM Subscribe
How do I serve a .manifest file as "type text/cache-manifest" using Yahoo small business webhosting? I have created the manifest file and uploaded it to the server. I have declared the manifest file in the index.html, but I don't think the mime-type is recognized. Yahoo doesn't allow ht access files to be uploaded either. (I am trying to write my first web-app for the iPhone) Thanks for any guidance!
posted by DB Cooper to computers & internet (4 answers total)
The webserver is what sends the mime header. I assume if you can't upload .htaccess files you can't edit the settings of the webserver either. This means that you are 100% out of luck with this approach.
If you can specify any arbitrary kind of filename for your manifest though, you could try pointing your manifest declaration (?) to some kind of CGI program (perl, shell script, whatever). CGI output declares its own mime in the Content-type header. E.g.:
#!/usr/bin/perl
print "Content-type: text/cache-manifest\n\n"
print "Blah blah blah\n"
print "Line two of blah blah blah\n"
This is evil and hackish, but evil and hackish things must be done with evil and hackish file-upload and webserver control policies.
posted by jock@law at 3:26 PM on January 19, 2010