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

  • SEARCH
  • Home
  • 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 5970379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:21:59+00:00 2026-05-22T20:21:59+00:00

I have an MVC2 web site which I am trying to get working offline

  • 0

I have an MVC2 web site which I am trying to get working offline on an iPhone. All pages in my site use the same master page, and this references the single cache manifest file. None of the specific MVC urls are present in the manifest file but that is ok for now because they will get cached once they have been visited once (they get cached on initial download).

My problem is this: if I have a url of http://www.mysite.com/red or http://www.mysite.com/blue then the page gets cached on the iphone. If I have a url of http://www.mysite.com/red/one or http://www.mysite.com/blue/two then the page does not get cached.

Does anyone know why this might be happening?

Thanks very much.

  • 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-05-22T20:22:00+00:00Added an answer on May 22, 2026 at 8:22 pm

    The url of the files listed in a cache manifest are all relative to the location of the file that includes the manifest, not the location of the manifest itself.

    If your site is structured like:

    www.mysite.com/red
    www.mysite.com/blue
    www.mysite.com/red/one
    www.mysite.com/blue/two
    www.mysite.com/scripts/site.js
    www.mysite.com/css/site.css
    www.mysite.com/cache.manifest
    

    And your cache.manifest currently looks like

    CACHE MANIFEST
    scripts/site.js
    css/site.css
    

    It will work for http://www.mysite.com/red and http://www.mysite.com/blue .

    To make that same cache manifest work for http://www.mysite.com/red/one or http://www.mysite.com/blue/two, you should change your manifest to use absolute urls, like this:

    CACHE MANIFEST
    /scripts/site.js
    /css/site.css
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET MVC 2 web site in which I'd like to place
So all of the pages on my web application have URIs of the form
I am working on a ASP.NET MVC 2.0 Multi-Presentation web application which would use
I have a WCF service that lives side-by-side with an MVC2 web site. I'd
I have created a new MVC2 project using the ASP.NET MVC2 Web Application, which
I have an asp.net site. Its a mixture of web forms and MVC2. I
I have a ASP.Net MVC 2 web site, which can be visited by http://localhost/Admin/ContentMgr/
I have an IIS7.5 web-site, on Windows Server 2008, with an ASP.NET MVC2 web-site
I have an ASP.NET MVC 2 web-site. All the buisnes is in the databse
I am trying out ASP.Net MVC2 by building a small sample website which, amongst

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.