Hi,
I'm having problems trying to make some settings work on a context level. Specifically, I'm trying to set the Expires headers and add some HTTP headers of my own.
I've set up a static context, and set the URI to the folder (relative to the doc root) of where the folders are. The files are set to accessible, I've selected Enable Expires, and put an entry of application/json=A10. The MIME type for JSON files is in the main server mime-types file. I've also added "x-Content: nothing" (without the quotation marks) in the 'Extra Headers' section.
Neither of these settings appear to make any difference. I know the context is recognized in part, because when I set the accessible to 'no', I get 403 errors. I also know that the Enable Expires settings works on a server and VH level, since I've checked them there and they appear in the responses. It's just on a context level. I've had a go trying to get .htaccess files working, but that didn't work either - but I don't want to use them anyway, so I'd rather try to get things sorted on a context level.
Any ideas?
Thanks in advance for any responses.
I'm having problems trying to make some settings work on a context level. Specifically, I'm trying to set the Expires headers and add some HTTP headers of my own.
I've set up a static context, and set the URI to the folder (relative to the doc root) of where the folders are. The files are set to accessible, I've selected Enable Expires, and put an entry of application/json=A10. The MIME type for JSON files is in the main server mime-types file. I've also added "x-Content: nothing" (without the quotation marks) in the 'Extra Headers' section.
Neither of these settings appear to make any difference. I know the context is recognized in part, because when I set the accessible to 'no', I get 403 errors. I also know that the Enable Expires settings works on a server and VH level, since I've checked them there and they appear in the responses. It's just on a context level. I've had a go trying to get .htaccess files working, but that didn't work either - but I don't want to use them anyway, so I'd rather try to get things sorted on a context level.
Any ideas?
Thanks in advance for any responses.