Posting to the web and SSL...

Get help using Construct 2

Post » Tue Feb 23, 2016 1:19 am

I recently posted an app to my bluehost website. I then discovered that bluehost offers a free (shared) SSL certificate so I went ahead and got that working. This is actually kind of important because my app uses voice recognition, and without SSL it asks for permission every. time. you. click. the. talk. button.

I can now get to my app using an "https://" link OR the old "http://" link.

Here's the problem: I made a small update and uploaded it. When I use the new link the app doesn't detect that there is a new version. It's just using the cached one. (Even after repeated page reloads, after restarting the browser, etc.) The old "http://" link picked up the change immediately and downloaded the new version.

Why is only one link working? They are both pointing to the same files, right? Confused.
Last edited by John Cutter on Tue Feb 23, 2016 1:17 pm, edited 1 time in total.
B
11
S
3
Posts: 79
Reputation: 854

Post » Tue Feb 23, 2016 1:16 pm

Strangely, when I tried to load my website at work today I was only seeing the OLD version of the site. I tried to force the site to update but that didn't help. Switching to Chrome's Incognito Mode fixed the problem, so I completely cleared my cache and now everything seems to be working as intended.

So I'm thinking it was an issue with my website cache not updating? (I have a loading page in my app that is supposed to check for that. Not sure why it stopped working.)

Bottom line: everything is back to normal, for now.
B
11
S
3
Posts: 79
Reputation: 854

Post » Wed Feb 24, 2016 5:01 pm

This is a browser issue, not a C2 or server issue. This is why I test with the browser caching disabled (when possible). You can temporarily disable the browser cache using most developer tools (like Developer Tools for Chrome or Firebug for FF) or you can do it manually in the browser options.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Thu Feb 25, 2016 9:14 am

@ gumshoe2029 I need to run some more tests but my problem seems to have returned. Here's what I find unusual:

I upload a new Project File to my website, along with a new offline.appcache file. Then this:

SCENARIO #1
I go to: http://www.cuttergames.com/frenchflash/ and my app correctly identifies that there is an update and downloads it.

SCENARIO #2
I go to the secure version of my site: https://secure.bluehost.com/~cutterg1/frenchflash/ and the app doesn't get the update. (Even after I reload the page over and over again.)

Also, I think each of these links uses a different Local Storage file, right? Could that be related to the issue?
B
11
S
3
Posts: 79
Reputation: 854

Post » Thu Mar 03, 2016 7:35 pm

Your secure version worked fine for me:
Image
But I have never visited your site, so I had no cached version available.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests