Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8540881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:42:00+00:00 2026-06-11T11:42:00+00:00

I configured my app.yaml like this: – url: /data static_dir: templates/data http_headers: Content-Type: application/json

  • 0

I configured my app.yaml like this:

- url: /data
  static_dir: templates/data
  http_headers:
    Content-Type: application/json

As seen here at GAE config yaml

I do an AJAX request to get the JSON;
I have a 1KB “sic.json” there, properly formed (I checked…)

When I run dev_appserver,
Using Chrome developer tools, I see the return response as type:

Content-Type:application/octet-stream

When I retrieve these results in jQuery/Javascript, the string is not recognized as JSON;
if forces me to use JSON.Parse first…

But when I actually deploy, the app yaml configuration seems to work; it serves the static file as JSON so JSON.Parse is unnecessary…

Should I expect this, that dev_appserver doesn’t do the same as live deployment as far as serving http_headers for files?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:42:01+00:00Added an answer on June 11, 2026 at 11:42 am

    I’m not sure Content-Type is one the headers meant to be specified within http_headers. Assuming you don’t have anything else concerning templates/data dir that would imply otherwise in app.yaml, the following will work as expected:

    - url: /data
      static_dir: templates/data
      mime_type: application/json
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I configure the app.yaml file to redirect all URLs to another URL?
In my iPhone Core Data app I have it configured in a master-detail view
I've configured my GWT app with Guice as documented here . With this setup
Optimization script for RequireJS is configured by app.build.js file (it's just a convention) This
In my Facebook app I'm using the CanvasAction like so: <div id=my-button onclick=location.href='@Url.CanvasAction(Index, Facebook)'>
I recently configured my app to use the new AppStats feature of GAE. However,
I created a facebook app and i configured the following: IFrame Size: Resizable Canvas
I have configured in following way that spring MVC app using Spring 3.1.1.RELEASE web.xml
In the web.xml of my web app I have configured the server as following:
In my iPad app, I have configured the Facebook with newest Share Kit SDK

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.