Jump to content

Recommended Posts

Posted
Since more users have been using HAP since the COVID19 issue, some have been reporting that when they upload a file back to the network and re-download it, the file they have downloaded doesn't contain the changes so it's like there is a caching issue in the browser. The browser that is in question is Chrome but it works as it should if IE11 is used.
Posted

Ok i've tried the caching option but rather than tell IIS to use .aspx i saw the EDIT FEATURE SETTINGS on the right under Output Cache

 

cache.PNG

 

This hasn't made a difference to Chrome or Edge Chromium. There must be a deeper issue with these 2 browsers as it does seem coincidental that they are built on the same platform.

 

There is an announcement on the home page of the Home Access Plus home page informing users what browsers to use.

 

HAP.PNG

Posted
I suspect that the bug is those browsers may ignore the server-side do not cache flag. Have you tested by disabling the browser cache client-side? Obviously not ideal but will help in debugging.
Posted
How frustrating. That’s a lot of users affected, as Firefox’s market share isn’t that high (though Safari will be a big percentage). I wonder whether there’s a possible code change in the site to force a refresh - depends on your prowess in ASPX on that one.
Posted
How frustrating. That’s a lot of users affected, as Firefox’s market share isn’t that high (though Safari will be a big percentage). I wonder whether there’s a possible code change in the site to force a refresh - depends on your prowess in ASPX on that one.

 

Errr, not a chance on that one.

Posted

Hi all, it'll be a caching issue, that will be baked into the code I think.

 

Lets see if we can hack something into the javascript...

 

Line 798 of /myfiles/default.aspx

 

SelectedItems()[0].Data.Path.replace(/\\/g, "/") ---> (SelectedItems()[0].Data.Path.replace(/\\/g, "/") + '?' + Math.Random())

 

Same on 814 + 1432

 

Line 1032 + 1047

 

item.Data.Path.replace(/\\/g, "/") --> (item.Data.Path.replace(/\\/g, "/") + '?' + Math.Random())

  • Thanks 2
Posted
Hi all, it'll be a caching issue, that will be baked into the code I think.

 

Lets see if we can hack something into the javascript...

 

Line 798 of /myfiles/default.aspx

 

SelectedItems()[0].Data.Path.replace(/\\/g, "/") ---> (SelectedItems()[0].Data.Path.replace(/\\/g, "/") + '?' + Math.Random())

 

Same on 814 + 1432

 

Line 1032 + 1047

 

item.Data.Path.replace(/\\/g, "/") --> (item.Data.Path.replace(/\\/g, "/") + '?' + Math.Random())

 

Thanks Nick. Will try it over the weekend.

Posted
Hi all, it'll be a caching issue, that will be baked into the code I think.

 

Lets see if we can hack something into the javascript...

 

Line 798 of /myfiles/default.aspx

 

SelectedItems()[0].Data.Path.replace(/\\/g, "/") ---> (SelectedItems()[0].Data.Path.replace(/\\/g, "/") + '?' + Math.Random())

 

Same on 814 + 1432

 

Line 1032 + 1047

 

item.Data.Path.replace(/\\/g, "/") --> (item.Data.Path.replace(/\\/g, "/") + '?' + Math.Random())

 

 

@nickbro Before editing i wanted to check with you that the line numbers married up - I don't have a line 1432.

 

Please check the images to see if they are correct

 

HAP Last.JPG

 

HAP01.JPG

 

HAP.JPG

Posted

Ok, i've done a search and found the following - a few more than just on 3 lines.

 

SelectedItems()[0].Data.Path.replace:

 

Line 170

HAP001.JPG

 

Line 710

HAP002.JPG

 

Line 736

HAP003.JPG

 

Line 774

HAP004.JPG

 

Line 807

HAP005.JPG

 

Line 830

HAP006.JPG

 

 

item.Data.Path.replace

 

Line 870

HAP007.JPG

 

Line 871

HAP008.JPG

Posted
870 should be it

 

Thanks, so

 

OLD:

if (item.Data.Type != 'Directory') window.open((item.Data.Path.match(/\.\./i) ? item.Data.Path.replace(/\\/g, "/") : '#' + item.Data.Path));

 

NEW:

if (item.Data.Type != 'Directory') window.open((item.Data.Path.match(/\.\./i) ? [b](item.Data.Path.replace(/\\/g, "/") + '?' + Math.Random())[/b] : '#' + item.Data.Path));

 

 

What about the other one i need to change?

Posted
Thanks, so

 

OLD:

if (item.Data.Type != 'Directory') window.open((item.Data.Path.match(/\.\./i) ? item.Data.Path.replace(/\\/g, "/") : '#' + item.Data.Path));

 

NEW:

if (item.Data.Type != 'Directory') window.open((item.Data.Path.match(/\.\./i) ? [b](item.Data.Path.replace(/\\/g, "/") + '?' + Math.Random())[/b] : '#' + item.Data.Path));

 

 

What about the other one i need to change?

 

@nickbro editing only line 870 didn't work - in fact it made the site not render correctly.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...