Jump to content


Photo

firefox web interface - cache problem

windows firefox chrome cache client

Best Answer alberto.bracci , 06 October 2019 - 05:48 PM

Thanks for the hint! Apparently, I also had to look for cache related settings in other parts of the file.

In particular, I had a line the @pir8radio 's file didn't have:

 

add_header Cache-Control "public, max-age = 15778463";

removing it seems to solve the issue at least for the browser.

Thanks!

Go to the full post


  • Please log in to reply
14 replies to this topic

#1 alberto.bracci OFFLINE  

alberto.bracci

    Member

  • Members
  • 10 posts
  • Local time: 05:41 PM

Posted 23 September 2019 - 06:20 AM

Hello,

 

I have a problem with web interfaces, both in firefox and chrome on windows. In particular when I open emby from browser it often shows an older cached session, meaning that the next episodes to play and the one to be resumed are older. If I clean the cache, things get back to normal. Still, it happens all the time and I cannot keep clearing the cache every time, is there a way to prevent this from happening?

 

Thanks,

Alberto



#2 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16198 posts
  • Local time: 08:41 AM
  • LocationWashington State

Posted 23 September 2019 - 01:13 PM

What browser versions?  I have never experience this on either browser on my Windows systems.



#3 alberto.bracci OFFLINE  

alberto.bracci

    Member

  • Members
  • 10 posts
  • Local time: 05:41 PM

Posted 23 September 2019 - 01:41 PM

firefox 69.0.1



#4 alberto.bracci OFFLINE  

alberto.bracci

    Member

  • Members
  • 10 posts
  • Local time: 05:41 PM

Posted 04 October 2019 - 05:54 AM

The issue persists, with both chrome and firefox on different laptops.



#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 140182 posts
  • Local time: 11:41 AM

Posted 04 October 2019 - 11:39 AM

Thanks for the info. We'll take a look.

#6 alberto.bracci OFFLINE  

alberto.bracci

    Member

  • Members
  • 10 posts
  • Local time: 05:41 PM

Posted 06 October 2019 - 07:02 AM

Do you need any logs or config info? Apparently the issue is present also in the android app.

I run emby server on a Manjaro Linux desktop machine, using nginx with reverse proxy for remote connection.

I am not sure but maybe the issue appeared with latest server update, it was not always present in the past



#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 140182 posts
  • Local time: 11:41 AM

Posted 06 October 2019 - 12:46 PM

I have not been able to reproduce this. Perhaps try without the reverse proxy?

#8 alberto.bracci OFFLINE  

alberto.bracci

    Member

  • Members
  • 10 posts
  • Local time: 05:41 PM

Posted 06 October 2019 - 02:38 PM

I tried some changes in the reverse proxy but nothing works. In particular I tried adding proxy_cache off; or expires off; to the emby block without any success.

Only thing that works is disabling http caching in a firefox developer session. Unfortunately it is only a temporary workaround.

 

It seems like it is an issue with caching, maybe due to nginx. Unfortunately I have many services set up with nginx and cannot do without it. I share the emby block to see whether some of you might have any suggestion.

 

Thanks for your help!

 

 

Attached Files



#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 140182 posts
  • Local time: 11:41 AM

Posted 06 October 2019 - 03:03 PM

Have you compared your nginx setup to @pir8radio 's ? 



#10 alberto.bracci OFFLINE  

alberto.bracci

    Member

  • Members
  • 10 posts
  • Local time: 05:41 PM

Posted 06 October 2019 - 05:48 PM   Best Answer

Thanks for the hint! Apparently, I also had to look for cache related settings in other parts of the file.

In particular, I had a line the @pir8radio 's file didn't have:

 

add_header Cache-Control "public, max-age = 15778463";

removing it seems to solve the issue at least for the browser.

Thanks!



#11 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 140182 posts
  • Local time: 11:41 AM

Posted 06 October 2019 - 05:56 PM

Thanks for the feedback.

#12 pir8radio OFFLINE  

pir8radio

    NGINX

  • Members
  • 2926 posts
  • Local time: 10:41 AM
  • LocationChicago

Posted 09 October 2019 - 10:55 AM

Yea you don't want to force long cache times for anything but the .webp images.    Emby versions all of their javascripts and what not, if you cache html it will try to call old scripts and stuff.  

 

Good job finding the issue. 


Edited by pir8radio, 09 October 2019 - 10:55 AM.


#13 alberto.bracci OFFLINE  

alberto.bracci

    Member

  • Members
  • 10 posts
  • Local time: 05:41 PM

Posted 09 October 2019 - 11:09 AM

Thanks for the explanation! This reminds me of another small issue I have that might be related.

My libraries' images on the homepage are the same one that have been generated when I first set up emby. I cannot find a way to force their update, as the content has changed and thus the image shows wrong content.

Can it still be a cache related problem?

 

I think this issue was present even before I set up nginx, so it shouldn't be related to that.



#14 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16198 posts
  • Local time: 08:41 AM
  • LocationWashington State

Posted 09 October 2019 - 11:22 AM

Thanks for the explanation! This reminds me of another small issue I have that might be related.

My libraries' images on the homepage are the same one that have been generated when I first set up emby. I cannot find a way to force their update, as the content has changed and thus the image shows wrong content.

Can it still be a cache related problem?

 

I think this issue was present even before I set up nginx, so it shouldn't be related to that.

 

 

Haven't tested in awhile and am not sure if it is broke in stable version or not.  I know it has been updated in the beta 4.3.x.x and requires a delete of current image to generate new image on next library scan.


  • Luke likes this

#15 alberto.bracci OFFLINE  

alberto.bracci

    Member

  • Members
  • 10 posts
  • Local time: 05:41 PM

Posted 16 October 2019 - 05:29 AM

Thanks for another good hint!

Emby server stable version 4.2.1.0 on Manjaro Linux, deleting the images and scanning the libraries made them update!

 

Thanks again to all of you for your help!







Also tagged with one or more of these keywords: windows, firefox, chrome, cache, client

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users