Weird extra characters in json file name

Weird extra characters in json file name

barraclmbarraclm Posts: 17Questions: 5Answers: 0

I am getting a problem on https://dancingmaggot.com/what-was-danced/baltimore-ecd-new

The developer tools show that I am trying and failing (403) to load
https://dancingmaggot.com/files/b.json?_=1759840158476

Before I try and do battle with .htaccess, I am curious about the ?_=1759840158476 part of the file name. It's nowhere in my code and in other working Joomla pages with DataTables, I do not see it. Is this valid, but I am only seeing it because the file is failing or is it failing because of the extra characters?

Any help would be much appreciated.

Answers

  • allanallan Posts: 65,207Questions: 1Answers: 10,804 Site admin
    edited October 7

    ?_=1759840158476

    Its an anti-cache parameter. The intention with it is to try an make sure you get the latest version of the data. The number is the current time stamp. If you don't want this parameter do:

    ajax: {
      url: '/files/b.json',
      cache: true
    }
    

    That isn't your issue though. If you do directly to https://dancingmaggot.com/files/b.json it is still failing with a 403 forbidden error. You'd need to check the web-server's configuration to see what is going wrong there. The error logs might give a clue.

    Allan

  • barraclmbarraclm Posts: 17Questions: 5Answers: 0

    SOLVED: I found another helpful comment about .htaccess in sub-directories and was able to edit my .htaccess so that it worked.

Sign In or Register to comment.